system create 'sprite' object too many

Get help using Construct 2

Post » Mon Jul 04, 2016 3:19 am

Message: Ramees can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
hi,

plz check on inspector,when the player dies 'sprite' object keep on increase.how to solve this problem.

https://www.mediafire.com/?2pk638kdxt161es


thanks..
B
7
Posts: 7
Reputation: 291

Post » Mon Jul 04, 2016 3:36 am

your event on player Y > layout is causing the infinity so basically what you put down is that if player is at 1 greater then the layout then create the object but that hold true for each falling variable so it went into infinite because you have infinite possibility of Y greater then the layout. Which trigget the event multiple times.

I changed it simply to destroy on outside of layout and when player is destroyed run that event. oh and you forgot to include event 2 sheet in event 1.

Next time read outloud the IF condition and write down how many tick will this condition run under current IF to the action.
B
52
S
24
G
6
Posts: 391
Reputation: 7,845


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Syazanie Amirin and 8 guests