Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Graphics Forum


You are currently viewing our Graphics Forum as a guest. Please register to participate.
Login



Reply
Methods of Timing/Restart Timer() function
Old 12-21-2005, 06:10 PM Methods of Timing/Restart Timer() function
Super Talker

Posts: 116
Trades: 0
I have been learning flash and I just began learning action script. I am making a crude game of where a graphic follows you and you have to move so that you do not get hit by the box. I have gotten everything scripted properly, including the hittest, etc, but there is only one problem. I have set up the following box ( referred to as "enemy" from here on out) so that it will increase in speed after a certain amount of time. For this time, i used the Timer(); function. what this does is that it takes the time that has elapsed from the beginning of the movie. whenever the enemy hits the player, you are taken to another frame where it says you lose and has a button that takes you back to the game frame. The problem is that when i press this button, the enemy is still moving VERY fast, as if the timer had already elapsed. I want to know if there's either


1) a way to restart the movie completely, so that the Timer(); function is also restarted

or

2) another method to measure the time elapsed since the game started (or frame started since its all on one frame)


I hope this makes sense, and thnx for ur time. If you have any questions, feel free to reply.
__________________


Please login or register to view this content. Registration is FREE

nasaboy007 is offline
Reply With Quote
View Public Profile Visit nasaboy007's homepage!
 
 
Register now for full access!
Reply     « Reply to Methods of Timing/Restart Timer() function
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09396 seconds with 12 queries