change time on timer
![developer6810](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I want to put a timer in and also have objects that if it collides with an actor, change the time to +10 seconds on one object or -10 seconds on another. Would I have to create an attribute for the time or how else would I do it?
Best Answer
-
Braydon_SFX Posts: 9,273
Yeah, create a integer attribute and then have the time on the timer set to that attribute.
Whenever you need to add some time, just add to that attribute.My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Answers
Wait, if you wanted the starting time to be 60, would you set the attribute at 60?
www.gshelper.com has many tutorials.
Yes, set that to 60.
Then, you would create a rule in an actor:
Every 1 second,
change attribute game.Time to game.Time-1
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx