How to stop enemy movement for some seconds?

0 favourites
  • 9 posts
From the Asset Store
Be discreet and rescue your friends from behind enemy lines.
  • Hi, i am making an simple platform game.I want to stop enemy movement for 5 seconds when player press a key.I can stop enemy movement when player pressed a key.But i don't know how to stop it only for some seconds. Need help guys.Thank you <img src="smileys/smiley1.gif" border="0" align="middle" />

  • You can read about timers in the manual

    Another easy way would be to add a system wait command

    On key pressed ..... disable platform behavior

                          wait 5 seconds

                          enable platform behavior

  • Thank you very much..I will try it <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • when i apply system wait for 5 seconds it will also affect to the player as well.I want to do some action only for some seconds... <img src="smileys/smiley5.gif" border="0" align="middle" />

  • You have to manage families.

  • A very useful practice is to read the manual and also go through some tutorials. It will get most of the obvious stuff out of the way for you so you can focus on getting answers for items that are truly necessary. You may find there are some who will not even respond if you ask questions that are covered in the manual and basic tutorials.

  • give me some more information so i can try to help you out.why it affects the player as well? how is your enemy moving? with platform behavior? with bullet movement? with what?with simulated key press?

    i did not say to disable the players platform behavior.only the enemy's

    if it is bullet set bullet disabled ---wait --- then enable again

    if you post a .capx maybe i can help more

  • my enemies have set to physics behavior and i have set the velocity on every tick.is that wrong? i didn't set it to bullet behavior because in my game i have some small mountains.i need enemy to walk. when user click the button i set to velocity 0 wait 5 seconds and then again set velocity to 50. But enemy is walking even though i set velocity 0. within that 5 seconds i cannot move my player.

  • I am using the free edition <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)