Carryover Variables

For questions about using Classic.

Post » Wed Apr 06, 2011 6:08 am

I can't figure out how to program my game so that an object's private variables remain consistent from one layout to the next.

For example, the game is a platformer and let's say I'm collecting coins. I collect 10 coins in level 1, and there would be text that shows this number.

How would I program the game so that when the player reaches the next level/layout, they still have 10 coins?
B
3
G
1
Posts: 10
Reputation: 495

Post » Wed Apr 06, 2011 7:06 am

You are looking for global variables chap. You can add them from the project management tab. They stay constant across layouts.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest