Timer Issue
senkan
Member, PRO Posts: 2
Hi, people.
Let me try to explain my problem:
volume = 0
(real)timer = 1
timer[
every (timer)
change attribute (volume) to ((volume+1)%2)
]
That should make volume goes up and down every second. And it does.
Problem is when I have another actor when pressed makes (timer) = ((timer)+0.2)
It seems that when timer is first started it can't change its value.
How to fix that?
Thanks in advance
Let me try to explain my problem:
volume = 0
(real)timer = 1
timer[
every (timer)
change attribute (volume) to ((volume+1)%2)
]
That should make volume goes up and down every second. And it does.
Problem is when I have another actor when pressed makes (timer) = ((timer)+0.2)
It seems that when timer is first started it can't change its value.
How to fix that?
Thanks in advance
Comments
Check the file: https://www.dropbox.com/sh/hsm1b77dms9sd58/6GMjSOtfW8
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User