aminhanifm's Forum Posts

  • aminhanifm

    createFish accepts 2 parameters. You need to add 2 more to pass position. Also add position values to payload when raising event 1 and parse them when handling "On event 1". Current payload is fish type number. You need to pass a table with 3 parameters instead: type, x and y. Because Construct does not support js objects as parameters, encode this table in string, with json e.g.

    Thank you so much ! i will try it soon

  • aminhanifm

    Which exact Photon example do you use? What is the name of the function? Do you have any errors or something does not work as expected?

    I am using Demo-pool Photon example, the name of the function is createFish, i don't get any errors but if i change the position of creating fish to random then if there's new player joined, the new player will be created on randomed place on my screen then it moving until the new player get into the real position, and the new player's screen is also creating my fish to a random position and it moving to my real position.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Im using photon's example, and theres a creating function which are being used for actor join and game event raises, that makes me really confused. maybe i can send you the capx if you want

  • Hello guys !

    How can i create a player on a randomize place between Layout.Width & Layout.Height and keeps the place of joined actor, so when a player join the another player who has joined the room already on their places, not being randomized?

    I really appreciate for anyone who help me with this