Enemy position selected from several possibilities

0 favourites
  • 4 posts
From the Asset Store
Several elements of the game interface hidden objects
  • Hello and thanks for reading this message.

    I come with a new question that probably has been answered.

    I have several enemies on the stage, each one of them out of a hole. I wish every X time an enemy out of one of those random holes.

    How I can make enemies appear in one of those random positions?.

    Logically each enemy / hole, have defined X and Y coordinates, and I know their values??. But I do not know how to make an enemy appears on screen using those coordinates as a reference. I suppose I should store these somewhere.

    System - Every X seconds - ??? <img src="smileys/smiley19.gif" border="0" align="middle" />

    Here, an illustrative image of a similar game that I want to do:

    <img src="http://oi39.tinypic.com/1qiw4o.jpg" border="0" />

    Thanks and I hope you can help me, because I do not know how to do this.

  • jesusruiz


    an easy way to create something like the image above would be to have 9 enemies all set to invisible then choose a random number between 1 and 9 and make that enemy visible.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • use the pick random instance and have a sprite for each enemy spawn point

    and spawn the enemy from random instance of the spawn point

  • Thank you for your suggestions, I'll have to try if I can make them happen.

    If I have any problems I will write, but I hate to bother you.

    A greeting ;)

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