Je Fawk's Forum Posts

  • Awesome! This would be very useful

  • First off, the Function.ReturnValue should only be used inside a function, at the end of the code hopefully, otherwise it will not do anything.

    Remove the function and put it's content in the code for now. Whenever there is a bug in a code (not necessarily in C2) start removing useless things that can cause problems.

    Divide and conquer.

  • It's hard to understand your code, maybe you can provide a screenshot or something? Also I don't know demo-pool from the photon example so I'm rather clueless.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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