DoomEyes's Forum Posts

  • My enemy Robots walk only in four directions (up, down, left, right). Using the code in the screenshot, he randomly moves in one of these four directions every 2-5 seconds.

    Please right-click, on this image, and you can view it:

    <img src="https://www.dropbox.com/s/c201w4gvss061tb/screen.png" border="0" />

    The problem: When the game loads, all of the Robots on the screen move to the top of the screen, and then will start the random movement process. How do I solve this?

    Another issue: The Robots will continue walking until they hit a solid. How can I make it so the Robots randomly stop in various locations even if it's not a solid that stops them?

    Additional thing wanted: I would like the Robots to start following the Player when they come within a certain distance of the player.

    I have read and tested many of the other enemy movement tutorials and forum posts on this site, and all of the ones I have seen are for Platform movement, or for 8-Direction movement, or for Sine movement, or for Pathfinding movement. Is there an easy way to do this with the 4-direction movement I am using?

    Thank you for your help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you! That worked for me.

    DoomEyes

    There is a 'Wait' function. If you tried this already, link to .capx file please !

  • My player shoots a tree. The tree is destroyed, but it spawns an apple. I want the apple to sit there for five seconds, then flash for three seconds, then it's destroyed. I can get almost all of this to work, but I can't figure out how to make the flash start after five seconds. The flash always starts right away as soon as the apple is spawned. Thank you for your help!

  • I'm new to Construct 2. My player can move only in the 4-directions movement (up, down, left, right). I would like the enemy to go after the player when the player gets within a certain distance of the enemy, but I would like the enemy to move only in the 4-directions movement.

    I know how to make my player move correctly, but how do I give this AI to the enemy.

    Thank you in advance for your help.