dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: countdown timer

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    4

    countdown timer

    hi.
    im making a game and i need to have a countdown timer that will count down from 15. i tried using the timer functions but they weren't much use. i have created an edit box with a variable name of time. in the starting script i have put

    time = 15

    and then in a seperate script i have put

    time - 1

    and made that script run every 30 frames becuase the file is playing at 30 fps. when i run the game the edit box just stays on 15. how can i fix this?

    Sterny

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Either

    time=time-1

    or

    time-=1

    both should work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center