XOPC's Forum Posts

  • 15 posts
  • Hi all! Is there any way to check if object A exists at coordinates X,Y?

    Thank you!

  • Hi ThePhotons!

    I need to count players in room. I use Photon.RoomPlayerCount(Photon.MyRoomName) for this, but it's showing wrong value. I've 4 player in my room, but it shows 3.

    Also, I use System.EveryTick to update number of player when someone joins, but it doesn't update a value.

    What I'm doing wrong? Is this a right way?

    Thanks a lot.

  • Thanks a lot!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all! I have an event with two subevents.

    First subevent checks if variable is "1". If it's "1" subevent doing some actions and set this variable to "2".

    The problem is that next subevent checks if variable is "2".

    But it always executing because first subevent set variable to "2".

    Is there any way to stop running subevents if one of them is executed?

    Or any other logic to do what i described?

    I need something like: if (variable is "1") 'do something, set variable to "2"' else 'do something'.

    Thank you!

  • Hi all, I'm looking for plugin or something else to add IAP purchases to my HTNL5 game, not for mobile game. Is it possible? Can I use mobile IAP plugin for this or it works only for games in Google Play? Could you please share some tutorials or documentation?

    Thank you!

  • Hi all, I'm using 8Direction behavior.

    How can I know that angle of motion is changed? Is there something like "On angle changed"? I can't find something like this in 8Direction events.

    Thank you!

  • Hi all, I'm using 8 Direction behavior for my player. I need to do some events when player starts and stops moving.

    So, on "Is moving" event with "trigger once" it works fine.

    But on inverted "Is moving" event with "trigger once" it doesn't work. Anything not happens when player is stopped.

    What can be a root cause? Am I right in using inverted "Is moving" to find that player is is stopped?

    Thank you!

  • Thanks for the idea!

  • Hi all!

    I tried to use 8 Direction, Custom direction and Move to behavior but have no result.

    All I need is to move my object when some event is done. I need to use just an angle, which is stored in variable and move my object in this toward with special speed while this variable will not be changed.

    Thank you!

  • Hi all, I'm using 8 Direction behavior to move my player. I need to set some action when player start or stop moving. And I also need to know player's direction.

    How can I do this using 8 Direction behavior? In it's events I see just is moving option, not "on start move" or "stop move". Do I need to use another behavior or something else?

    Thank you!

  • Thanks for the answer! Lags are mostly on moving, all other actions as shooting or collecting objects works with smaller amount of lags. Also, after your answer, I think other actions lag may be present because of each frame raising players positions. I'll try to send just direction and move the object while event "is stopped" will be raised. Thanks for the idea.

  • Problem is fixed. We should to set custom room properties before creating a room.

  • Hi ThePhotons, I'm new to multiplayer game development and I'm creating my first multiplayer game. I'm using Photon Realtime SDK with Construct 3. Everything works fine, but I have a lot of lags on players moving.

    I'm using 8 Direction behavior in my game and just send event with player's x,y coordinates on "Is moving" event. I don't use any data structure as arrays, just text with x and y coordinates. I thought it's the easiest solution for networking games.

    I didn't find any documentation or solution for Construct with Photon games.

    I will be grateful for any help, any article, example or anything else.

    Thank you!

  • Hi all, please, help me to solve my problem.

    In my multiplayer game when user is in lobby I call "join room", if room is not found it's creating with custom room property "map".

    After this on "join room" event i use "go to layout by name" + Photon.PropertyOfMyRoom("map"). But these works only for room creator. All other players can't go to needed layout, because Photon.PropertyOfMyRoom("map") return "undefined".

    Where may be the root cause?

    Thank you!

  • Hi all, I'm new to multiplayer game development and I'm creating my first multiplayer game. I'm using Photon Realtime SDK with Construct 3. Everything works fine, but I have a lot of lags on players moving.

    I'm using 8 Direction behavior in my game and just send event with player's x,y coordinates on "Is moving" event. I don't use any data structure as arrays, just text with x and y coordinates. I thought it's the easiest solution for networking games.

    I didn't find any documentation or solution for Construct with Photon games.

    I will be grateful for any help, any article, example or anything else.

    Thank you!

  • 15 posts