Timer counting up

sarim987@gmail.comsarim987@gmail.com Member Posts: 1
edited October 2012 in Working with GS (Mac)
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

  • bjandthekatzbjandthekatz Orlando, FlPosts: 1,375
    Accepted Answer
    Create 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.

Answers

  • StefaniedSStefaniedS Member Posts: 3
    Hi
    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?
  • moneymaster2012moneymaster2012 Member Posts: 6

    @bjandthekatz said:
    Create 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.

    I need help also. It is counting with decimals...is there a possible way to count only on the second part?

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @moneymaster2012, make sure you are using an Integer Attribute NOT a Real Attribute. Integers don't use decimals.

Sign In or Register to comment.