A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: time limit

  1. #1
    Member
    Join Date
    Mar 2004
    Location
    Lancashire, UK
    Posts
    30

    time limit

    hello,
    I have made a maze game and was wondering how i would go about recording the time it takes for a player to complete the maze and maybe showing that on a leader board. Also if they complete it under a certain time the they progress to the next level.

    Thanks for your time, much appreciated.

  2. #2
    Senior Member kendude's Avatar
    Join Date
    Sep 2003
    Location
    Hartford, CT USA
    Posts
    877
    code:

    start = function () {
    startTime = getTimer()/1000;
    //other code...
    }
    finish = function () {
    finishTime = getTimer()/1000;
    timeTaken = (finishTime - startTime);
    //other code...
    }


  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Lancashire, UK
    Posts
    30

    mmmmmmmmmmmmm

    Thankyou i'll try it. how would i make a leader board though

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Lancashire, UK
    Posts
    30

    problems

    Would i insert the actionscript into a dynamic text box, and what other code would i need

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