SOLVED Need help with destroy sprites on start of layout

Get help using Construct 2

Post » Tue Apr 04, 2017 2:31 pm

ezrubiera wrote:give me one moment, I create a new project and I try it



sure ;)
B
24
S
7
Posts: 208
Reputation: 2,032

Post » Tue Apr 04, 2017 2:48 pm

I can't destroy the number desired, I dont know why. I tried using "pick random instance" inside the loop. I dont know why is this happening. Maybe the enemy count is done when all the loop is finished, but that dont make sense :/
B
6
S
2
Posts: 61
Reputation: 1,099

Post » Wed Apr 05, 2017 3:52 am

bump
B
24
S
7
Posts: 208
Reputation: 2,032

Post » Wed Apr 05, 2017 4:26 am

The trick is the delete doesn't complete until you leave the top-level event, so you actually need to flag your deleted objects to eliminate them from the loop.

http://www.blackhornettechnologies.com/Construct2Stuff/DeleteOnStartup.capx
ImageImageImage
B
71
S
21
G
221
Posts: 3,650
Reputation: 124,229

Post » Wed Apr 05, 2017 12:46 pm

blackhornet wrote:The trick is the delete doesn't complete until you leave the top-level event, so you actually need to flag your deleted objects to eliminate them from the loop.

http://www.blackhornettechnologies.com/Construct2Stuff/DeleteOnStartup.capx



i think thats what i need ;D
Many thanks
B
24
S
7
Posts: 208
Reputation: 2,032

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest