|
-
where to start - practice tree?
I need to make a practice tree using flash, it basically needs to run a simple animation and will require the player to click a button when the light turns green. It needs to show the reaction time for how long it took them to click after the light went green. There needs to be a few variables that make the equation for the delay time, like roll out and that variable needs to be changeable in a simple text box. I don't want anyone to do it for me, that's too much to ask but could you guys help point me at the right tutorials and explain what I will need to do to accomplish this? I'm a web develop and know html,css,php and mysql so I may be able to adapt to this fairly easily.
Thanks!
-
Okay, I think I understand what I need to do, the basics to get this job done. Let me explain what I am thinking and then see if anyone can point me somewhere to learn to do this:
1: Need to have a staging button and a launch button, when you click stage it should start the animation from the beginning. Let's pretend it ends up being 11 frames. Frame 10 will be the green light, frame 11 will be the red light. If you hit launch before frame 10, you skip straight to frame 11. If you make it to frame 10 and then hit launch, it should show your reaction time. (animation stops normally on 10)
2: Your reaction time will be displayed by starting a timer as soon as you get to frame 10, once you hit launch it will stop the timer and display the time. Of course if you hit launch before 10, it'll take you to 11 and tell you that you jumped the line.
Anyone have any suggestions for me to learn how to do this?
Thanks
-
Senior Member
So, do you know how to create buttons and add click/press to them? Or movieClip with 11 frames and Stop() action in frames 1 and 10? You can detect the current frame where moviClip is with _currentFrame property and you can measure time with getTimer() method.
-
Hi
Theres a similar problem put to the forums a couple of years ago. It measure the time elapsed between two button presses, but might be a foundation for your code.
It uses two seperate examples. Don't know what level you are at, but if you can understand it, the second method using getTimer function looks better than the first.
The details are at http://board.flashkit.com/board/show...hreadid=535207
Unfortunately, I can't find a tutorial for your specific problem, but i'll keep my eyes open.
Hope it helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|