Foreach count of newly created objects

Get help using Construct 2

Post » Thu Oct 18, 2012 4:34 pm

A top level event is one that's not a sub-event of anything. There's another thread here where R0J0hound links to a picture from CC that explains it.

It depends what exactly you're trying to do. You could either do whatever you're doing in the for each loop inside the while loop instead, immediately after the sprite is spawned. Or inside an 'on created' trigger. Or you could set a variable true when the sprites are spawned and have a top level event 'var = true/ for each sprite' -> do stuff.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

Post » Sun Oct 21, 2012 6:10 am

Late reply, but I just wanted to say that picture from R0J0hound explained it really well. Line 5 is exactly where I seem to be having trouble.

I was able to get it all working once I understood that, thanks for the help ramones
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Previous

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, jul and 20 guests