global object dont reset?

Get help using Construct 2

Post » Mon Nov 14, 2011 2:00 pm

so i made all the objects i gonna use thruout my game global, i remember from classic i worked this way, then i put everything in one objectlayout

but when i do a "go to layout" (for resetting the current layout) the objects that where destroyed are still destroyed , shouldn't there be a reset layout?

we have reset global vars, so you could say we also need a reset global objects then?
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Mon Nov 14, 2011 2:07 pm

It works the same as Classic - global objects are only ever created once. If they didn't, and you didn't explicitly destroy global objects, restarting the layout would cause all the objects to pile up again and again! So it's up to you to recreate global objects after you destroy them.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to How do I....?

Who is online

Users browsing this forum: suicidenutella and 0 guests