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
60
S
30
G
133
Posts: 1,942
Reputation: 74,861

Post » Mon Jul 11, 2016 10:28 pm

nvm
B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450

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: No registered users and 5 guests