A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: controlling gettimer

  1. #1
    Senior Member
    Join Date
    Apr 2000
    Hi, I have a jigsaw game which times how long the user takes to complete it. My problem is that the game starts after the game intro, but the timer is already running during the intro, so when the game starts, the timer shows the time the user has been on the page already.

    How do I control the timer and make it start from zero where and when the game starts? Thanks, woktoc

  2. #2
    Senior Member
    Join Date
    Jun 2000
    when your game start set a variable equal to the gettimer reurn value at that time.

    NOw to get the zero time from the begining of the game subtract the variable from the future gettimer values..

    I hope I made myself clear enough.

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