Making Multiple Levels

Get help using Construct 2

Post » Fri Mar 29, 2013 3:41 am

When going to the next level, I'd like my character and variables (health, high score, etc) to enter the next level just as he left off when he exited the first level.
How do I do this?
B
10
S
3
Posts: 86
Reputation: 1,508

Post » Fri Mar 29, 2013 3:44 am

Global variables!

Positioning is trickier, you might want to look at

https://www.scirra.com/manual/82/includesMr E Bear2013-03-29 03:48:33
B
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Fri Mar 29, 2013 8:54 am

Why global variables? You can use layouts as levels, set all the levels to the same event sheet.All the instance variables are saved. That's about it.
HARMLESS SIGNATURE THAT IS VIEWED BY OTHERS AS OFFENSIVE AND CONTROVERSIAL
B
14
S
3
G
3
Posts: 356
Reputation: 4,362

Post » Fri Mar 29, 2013 6:03 pm

Why not global variables? Or better yet, an array! Dictionary object is not a bad choice either. A lot of good ways to do this.

Arrays

Dictionary
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Fri Mar 29, 2013 6:28 pm

If you want to keep the value of your variables, simply use one event sheet for all your layouts. If you want to reset of those variables use the "end of layout" action.
B
17
S
4
G
3
Posts: 73
Reputation: 3,723


Return to How do I....?

Who is online

Users browsing this forum: jeffige, Mallets and 25 guests