restart layout./go to layout. sprite appear in other layout

Get help using Construct 2

Post » Wed Mar 11, 2015 9:54 pm

hi everyone.
i'm having a little problem with my game. i don't know if it is an error in my sheet of just a bug.
when i reset the layout. (player dead for example) when it restart. enemies or object like rock ecc.... appear at random in the new layout.
or when i go to another layout like menu. the object enemy appear at random in this layout even if i havent added it.
so when i use reset layout. or go to layout. the object spawned during the game. are spawed at random even in other layout after the action reset or go to.
B
3
Posts: 4
Reputation: 185

Post » Thu Mar 12, 2015 12:04 am

Can you upload a capx
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,145

Post » Thu Mar 12, 2015 12:06 am

Do you spawn these objects randomly when you first load them?

Are they set to be global objects in their properties?
Nothing goes unanswered!
B
22
S
5
G
1
Posts: 430
Reputation: 3,383

Post » Thu Mar 12, 2015 12:11 am

hi everyone. thank for your support.
i somehow did manage to solve this.
when i restart the layout i destroy all object on screen. and usually works. but this time instead if i destroy the spriter object (i'm using spriter scml file) it does not destroy all the istances of the object. but when i tried to destroy the family object it worked just fine.
thank you very much for your concern
B
3
Posts: 4
Reputation: 185


Return to How do I....?

Who is online

Users browsing this forum: hyem, KidMenos, makkancs, Mallets, Yahoo [Bot] and 20 guests