[quote="aCuria":2b5j4p1n]What is the best way to think about multiple levels in construct? Should each level be in a different layout or should events be used to load things to get another level?[/quote:2b5j4p1n]
Generally speaking the 2nd method you mention would be preferable. However, if you have a little game with say 3 levels it might be more of a hassle and not really worth the effort to develop such a system/level editor.
[quote="aCuria":2b5j4p1n]How are behaviors of objects updated if there are multiple levels? Must changes be done individually on every level? [/quote:2b5j4p1n]
This question somewhat confuses me. If you have instances of an object with a certain behavior on multiple layouts, it will naturally work on all of them.
[quote="aCuria":2b5j4p1n]Can an object have a static variable? IE: player sprite has a static health variable that does not change from layout to layout.[/quote:2b5j4p1n]
That's what global variables
are meant for. So instead of using a private variable which is directly connected to the object, you use a global variable, which will stay the same throughout layouts. Also look into global objects
. But beware this will mean that the object keeps existing on every layout unless you destroy it.
to the forums.