Enemy position selected from several possibilities

Get help using Construct 2

Post » Wed May 01, 2013 2:00 am

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 - ???

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



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

jesusruiz2013-05-01 02:05:33
B
4
Posts: 17
Reputation: 261

Post » Wed May 01, 2013 9:55 am

@jesusruiz

Hi
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.
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

Post » Wed May 01, 2013 2:02 pm

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
B
39
S
10
G
7
Posts: 514
Reputation: 9,426

Post » Wed May 01, 2013 9:51 pm

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 ;)jesusruiz2013-05-01 21:52:19
B
4
Posts: 17
Reputation: 261


Return to How do I....?

Who is online

Users browsing this forum: alextro, Colorfish, MarkThomas and 28 guests