Difference between restart layout and go to layout?

Discussion and feedback on Construct 2

Post » Wed Aug 20, 2014 9:48 pm

Just a quick question. What is the difference between restart layout and go to layout (LayoutName)

I know there is a difference, since I was using Restart Layout and I got multiple problems with behaviors acting funny, then I switched to Go to Layout and the problems were fixed. Is it something like if the on start of layout functions are called?
B
11
S
3
G
1
Posts: 98
Reputation: 1,062

Post » Wed Aug 20, 2014 10:04 pm

https://www.scirra.com/manual/125/system-actions

Go to layout
Go to layout (by name)
Switch to another layout in the project. Note that global variables keep their current value - they are not reset. To reset them use the system action Reset global variables.

Restart layout
Restart the current layout. Note that unlike Go to layout, this action resets all event groups to their initial activation state. Global variables keep their current value - they are not reset. To reset them use the system action Reset global variables.

Part of the answer, I'm French but I try to help
B
16
S
2
G
1
Posts: 38
Reputation: 1,031

Post » Thu Aug 21, 2014 2:30 pm

Ah, event groups. That'll do it thanks.
B
11
S
3
G
1
Posts: 98
Reputation: 1,062


Return to Construct 2 General

Who is online

Users browsing this forum: A2D and 2 guests