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
25
S
8
Posts: 219
Reputation: 2,181

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
25
S
8
Posts: 219
Reputation: 2,181

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
22
G
257
Posts: 3,788
Reputation: 142,692

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
25
S
8
Posts: 219
Reputation: 2,181

Previous

Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 6 guests