How do I Spawn sprite at random sprite from family?

Get help using Construct 2

Post » Mon Jul 11, 2016 10:21 pm

OK i have a family with just 1 sprite in it (spawner).
How do i spawn enemy sprite at random spawner instance ?
I have looked everywhere and cand find how to do it. help ?
B
8
S
3
G
3
Posts: 39
Reputation: 2,560

Post » Mon Jul 11, 2016 10:25 pm

System Pick Nth Instance of Family

Use the expression floor(random(family.count)
Mistakes were made.
B
52
S
26
G
109
Posts: 1,611
Reputation: 61,643

Post » Mon Jul 11, 2016 10:28 pm

nvm
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jul 11, 2016 11:16 pm

oosyrag wrote:System Pick Nth Instance of Family

Use the expression floor(random(family.count)


Thx a lot. that worked like a charm.
B
8
S
3
G
3
Posts: 39
Reputation: 2,560


Return to How do I....?

Who is online

Users browsing this forum: Armench, Artcadev, farsen, Yahoo [Bot] and 14 guests