Spawn random sprites with a spawner

Get help using Construct 2

Post » Sun Jan 20, 2013 5:47 pm

Is there any way to make a spawn sprite randomly spawn other sprites.

Example spawner every x seconds spawns red sprite, blue sprite, green sprite randomly.

I know there is a way with animation frames but i was hoping to find a way with seperate sprites.
B
18
S
5
G
3
Posts: 76
Reputation: 4,659

Post » Sun Jan 20, 2013 7:23 pm

You could add an instance variable to the spawner, and every X seconds set the variable to a random number, so if it gets 1, use the Action spawner spawn Item1, If it gets 2, Spawn item2 etc. etc.
B
29
S
7
G
3
Posts: 361
Reputation: 6,187

Post » Sun Jan 20, 2013 7:56 pm

Just like this.EncryptedCow2013-01-20 19:57:01
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Mon Jan 21, 2013 9:11 pm

[QUOTE=EncryptedCow] Just like this.[/QUOTE]


just what i needed! thank you
B
18
S
5
G
3
Posts: 76
Reputation: 4,659

Post » Sat Feb 02, 2013 9:38 am

Thanks for the Capx but I seem to be having some trouble with it. It seems to miss sometimes and not spawn a box so it ends up being 4 second til the next one comes around. Anyone else experiencing this?
B
11
S
1
Posts: 10
Reputation: 1,315


Return to How do I....?

Who is online

Users browsing this forum: selaus and 0 guests