go to previous layout

Get help using Construct 2

Post » Wed Jun 03, 2015 7:15 am

so when i click a button i want to go to previous layout, that ive been, for example im in layout 1. i go to layout 2 and when i click a button in layout 2 i go back to layout 1 BUT if im on layout 3 and i go to layout 2, i want to go back to layout 3, does that make sense?

1 -> 2 = go back to layout 1
3 -> 2 = go back to layout 3

this should be easy but cant seem to figure it out and im a beginner here
B
5
S
1
Posts: 77
Reputation: 754

Post » Wed Jun 03, 2015 7:28 am

Simple way would be creating a global variable LastLayout and before the action to change layout use an action to set LastLayout to the current Layout..
In the new layout : On button touched go to layout : LastLayout
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jun 03, 2015 3:20 pm

LittleStain wrote:Simple way would be creating a global variable LastLayout and before the action to change layout use an action to set LastLayout to the current Layout..
In the new layout : On button touched go to layout : LastLayout

yeah i should have used the global from the start, thanks a lot !
B
5
S
1
Posts: 77
Reputation: 754

Post » Sat Jun 06, 2015 3:00 pm

Try this tutorial link below. Many tutorials here for you to learn

https://www.dropbox.com/sh/eioscti86bpr ... 7YPza?dl=0
B
245
S
39
G
15
Posts: 1,946
Reputation: 40,276


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest