Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default time limit

    ive created a game in which you have to guide a car from start 2 finish following a road. i basically want to add a time limit (preferbably 1 minute) in which the user has to complete the race. if the user doesnt complete in the required time, it says game over and goes back 2 the main menu. however, if completed within time limit, a message comes up saying 'congratulaitions' or something similar!
    help please!!!!!!!!


    j1mmy webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Set a time limit to videorecord
      How can I set a time limit to videorecord component?
    2. Pages Exceed Time Limit
      Greetings - I have a quick question about logging pages that take more than xx seconds to load as set in CF Administrator. Can somebody intepret...
    3. set a time limit on videoRecord component.
      I need to set a time limit for recording for the videorecord component. I have heard that coding a timer to automaticly press the stop button. ...
    4. What is the allowable time limit for CFLOOP?
      I am getting the following error when looping:- The request has exceeded the allowable time limit Tag: CFLOOP What is the allowable time limit...
    5. how to time limit folder access?
      Hello I would like to be able to time limit user access to a folder ... any ideas on how to do this? can .htaccess etc be used? Cheers Geoff
  3. #2

    Default Re: time limit

    "j1mmy" <webforumsuser@macromedia.com> wrote in message
    news:bqae4p$13m$1@forums.macromedia.com...
    >
    > ive created a game in which you have to guide a car from start 2 finish
    > following a road. i basically want to add a time limit (preferbably 1
    > minute) in which the user has to complete the race. if the user doesnt
    > complete in the required time, it says game over and goes back 2 the main
    > menu.
    Well, you can do this with a simple frame script like this:

    property pTimeout

    on beginSprite me
    timeLimit = 1 * 60 * 60 -- 1 Minute
    pTimeout = the ticks + timeLimit
    end

    on exitFrame me
    if( the ticks < pTimeout ) then
    go to the frame
    else
    go to "Time Over"
    end if
    end
    > however, if completed within time limit, a message comes up saying
    > 'congratulaitions' or something similar!
    Well, you'd need to have some script in your game code that does a go to
    "Congratulations", when whatever it is that they have to do to win has
    happened - then if that is not called within the time limit the frame loop
    will take over and jump to the "time over" screen.

    - Robert


    Robert Tweed Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139