Timer counting up
sarim987@gmail.com
Member Posts: 1
Hi, this my first game and post for game salad. I was wondering how you would have a simple counter, starting at 0 and counting seconds and minutes up. I have seen most the tutorials on youtube but i keep getting invalid expression for those tutorials. So does anybody have a tutorial i can refer to. It doesn't have to be fancy. Just simple text numbers. Thank you everyone for your help!
Best Answer
-
bjandthekatz Orlando, FlPosts: 1,375Create an Integer attribute and name it whatever you want. Ill call it Time.
Create a timer behavior
(pick a number of seconds, ill use 1)
Every 1 Second Change Attribute Time to Time +1
Then you Create An actor and for it do Display Text: Time
Let me know if still need help.Need Help? Email Me | Templates | Full Game Source Code
Answers
I hope you can help me. I also want a counter, starting at 0 and counting milliseconds and seconds up.
I tried it with this: "Every 0.01 second > Change 'Timer' to 'Timer + 0.01", but it's counting up to slow. What can I do?
I need help also. It is counting with decimals...is there a possible way to count only on the second part?
@moneymaster2012, make sure you are using an Integer Attribute NOT a Real Attribute. Integers don't use decimals.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page