yenleidong's Forum Posts

  • 13 posts
  • You can try this ...

    system > else > trigger once > sprite1(invert) or sprite2(invert) or sprite3(invert) > set animation frame 0

    'Mouse is over object' followed by 'Trigger once' is equivalent to 'On mouse in, same with the invert conditions.

  • Hello #ThePhotons,

    I am happy to use this plugin.

    I have one of kind enemy named enemy01, spawn randomly every 3 to 5 second, in 1 minute I have about 20 enemy01, some enemy01 already destoyed outside screen.

    My question is how to create sync for peer for enemy01 position and angle for realtime?, include their existence begin their already created from host side and after peer get login?

    Could you give me some simple example for ease my experiment.

    Thanks.

  • even if Im using Photon?

  • I have the same problem with Syncing Objects, and my objects spawning randomly. when I open new tab at the Peer side and stay to another tab for a while then back soon, all objects will be delayed from syncing. maybe somebody or Photon Mastering ThePhotons can help me.

    any kind of help will be appeciated.

  • Thank you for this clarification, I believe all of us have tried as much as possible, and hopefully one day there is a best clue from scirra forum's friend.

  • I do not understand how to explaining this phenomenon, the problem in multiplayer sync, or there maybe some code that is lacking in the placement. When the Host not to focused on the game tab, objects sync will be stop.

    for further clarity, I'v to post video on the youtube, and to not to offend the others, I will delete my video as soon as possible.

    How to solve this for my Multiplayer game project ?

    https://youtu.be/MSEaPR7MDPA

  • Solved, Thanks guys.

    Im using and following this capx example http://www.blackhornettechnologies.com/ ... ullet.capx

  • I had mouse click event with two different method, one for spam mouse "left button clicked" and another one for mouse "left button is down".

    The problem is I want to spawn the bullet sprite from turret with this two of kind concept, player can spam click for fast bullet effect or hold down the left button of mouse to continue effect of bullet. I stuck at when I create two different events and make statement "else", but no luck, it work but not at all, the first bullet is double.

    I appreciated any people can help me or give me some clue.

    Thanks.

  • Im still confused, but really Im sorry.

    simply how to get the Set text for min_health value from enemny_name:"GoldDolphin" ?

    {"response":[{"id":"1","enemy_name":"GoldDolphin","min_health":"300","max_health":"2000","min_spawn":"2","max_spawn":"5"},{"id":"2","enemy_name":"RedShell","min_health":"500","max_health":"3000","min_spawn":"5","max_spawn":"10"}]}

    solved this, found on the page 12, post by locohost

    txtMin_Health > Set text to > "-min_health: "&JSON.Value(0,"response",0,"min_health")

    Thanks.

  • Im still confused, but really Im sorry.

    simply how to get the Set text for min_health value from enemny_name:"GoldDolphin" ?

    {"response":[{"id":"1","enemy_name":"GoldDolphin","min_health":"300","max_health":"2000","min_spawn":"2","max_spawn":"5"},{"id":"2","enemy_name":"RedShell","min_health":"500","max_health":"3000","min_spawn":"5","max_spawn":"10"}]}

  • mayber I should delete this post, just solved this problem.

    I set bullet properties > Bounce of solid to Yes.

  • Hi all,

    I appreciate if anybody here can teach me or give me some example.

    I want to make player bullet bouncing everytime reach the edge of screen layout, left right top and bottom before the bullet hit the enemy.

    except all enemy spawn, enemy still like a normal can begin spawning from layout outside and dissapeare on end of screen.

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • helpful example, how to make the car follow the track spin to left on circle?

  • 13 posts