How to carry values and counters over frames?

3 replies [Last post]
VaragtP's picture
User offline. Last seen 1 year 12 weeks ago. Offline
Joined: 02/10/2011
GBPs: 21

Like the title, how does one carry a value of say a caracter or values of counters to carry over different frames?

Jon Lambert's picture
User offline. Last seen 4 days 47 min ago. Offline
Joined: 10/10/2009
GBPs: 51

You can make the object global, and it will retain the same values from frame to frame. To set an object as global, go into the object's properties, and under Runtime Options, check "Global object". Once you've done this, the object will have the same values as you go from frame to frame, so if you set an object called Counter to have a value of 45 and then go to the second frame, that same Counter object will start with value 45. If you make an active object global, it will keep both alterable values and alterable strings.

For other types of values, you could always use global values or global strings.


Flame's picture
User offline. Last seen 46 weeks 19 hours ago. Offline
Joined: 05/07/2011
GBPs: 24

i think using global values helps allot with it, and also saves space in your event list! set in your application global values for example to Healt set it to 100 (example) and then add a counter and the the counter to global value health!(under set counter to, retrieve from another object- global value health i believe) continue with that by adding or subtract from global value health

Mario jr.'s picture
User offline. Last seen 14 weeks 2 days ago. Offline
Joined: 01/10/2011
GBPs: 1095

I've been wanting to do the same thing for a while.