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
65
S
19
G
7
Posts: 814
Reputation: 9,691

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
378
S
219
G
84
Posts: 23,863
Reputation: 187,909


Return to How do I....?

Who is online

Users browsing this forum: Asmodean, NN81, oddreal, oosyrag, Romalex360 and 10 guests