Je Fawk's Recent Forum Activity

  • What exactly is the problem?

    So once the data is sent like so on the Photon raise event action, on the TRIGGER, if you want to access Sprite.X, you use say, a local variable Token0 and assigned it to int(tokenat(Photon.EventData,0,"|")).

    As an example if Sprite.X = 50 and Sprite.Y = 75, Photon sends as a string 50|75|

    tokenat(Photon.EventData,0,"|") gets the 1st element from that string until the delimiter, which is |, so 50, then using int(50) you transform it from string to int.

  • Data can be Sprite.X & "|" & Sprite.Y & "|" or using any delimiter you want, then you use tokenat to grab what index you need.

  • Ohh nice!

  • When the second player joins the room the join room event is triggered he raises and event for others. When the raised event triggers they raise an event with info for str actor.nr that sent it to begin with. The second player now received this event from other players with their location, actornr so all you need to do here is create the sprites.

  • adventurist when player 2 joins back raise an event say ... code 10 to others with actor.nr

    on event raised 10, if player that receives it is photon.myactor (so the master client), raise an event say code 11 to others with actor.nr that was sent from above with his X and Y

    on event raised 11, if player that receives is photon.myactor (so NOT the master client due to sending events to others) set X and Y

  • Hopefully the problem is solved now

  • Ashley If you add Romanian as well to that list i can help a decent amount

  • I agree with bilgekaan i could also do with some performance improvements. I had to split my project so much so that i can work on the event sheet, it's amazing.

    Every type of function has it's own event sheet, like Functions - Player movement, Functions - Player animation, Functions - Chat

    Insane >.<

  • Wow that was so easy god dammit!

    Thanks a lot brunopalermo !

  • brunopalermo i checked the doc and tried implementing it but really it does look like random stuff even with a 2d array :/

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • dop2000 i replied because i can't use/don't know how to use the sort they have implemented so i'm making my own

    I got an array of 3 x ?? x 1, the height changes with the number of players and i'm trying to sort by score but yeah... their sort ... ???

    [Number] [PlayerName] [Score]

    So I'm stuck with making it myself

    Yann sorry, i didn't know there was a change in how loops worked before

  • Deleted the content since my problem was fixed

Je Fawk's avatar

Je Fawk

Early Adopter

Member since 7 Jul, 2014

Twitter
Je Fawk has 3 followers

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x6
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

19/44
How to earn trophies