user4273568
user4273568

Reputation:

Game-maker - Timer System Room Transfer

How do you transfer a timer's value from one room to another in Game-maker?

I have a working timer system that counts up, but when I change rooms the timer count resets. Why does the timer count reset?

Upvotes: 1

Views: 572

Answers (1)

Daedric
Daedric

Reputation: 500

The object that the timer is connected to is obviously not set to persistent (which will enable it to remain throughout all the rooms, with all of its previous data).

To enable persistence in an object: enter image description here

If it is connected to a controller object it should be easy to make it persistence but if it is part of a lesser object I recommend having it in a separate object to help with room changes (an object set to persistent of course).

Upvotes: 0

Related Questions