Je Fawk's Forum Posts

  • 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 :/

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey

    Did you ever fix this? I'm running into a similar issue.

  • Yann has a bug in his code: at the first loop iPos from 0 to Array.Width - 1 it's actually Array.Width - 2, otherwise it always replaces the max value with 0 and after more sorts the array has only 0's in it.

  • Looks great but I have a problem with the extreme zoom.