Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KeyDown

Status
Not open for further replies.

proust

Technical User
Jul 27, 2001
13
GB
Please help!!!
I'm making a childrens alphabet game where the user clicks a key and then goes to a marker in that movie, plays a short sequence and then returns to the previous frame.

I can't figure out how to do this, or where to place the script even

Really stuck - hope you can help!!
Thanks
Proust
 
you can create a keydownscript that will monitor keypresses and execute a specific handler when keys are pressed, I think you specify what handler to use as the keydownscript in your startmovie script. Then just use a case statement to decide what marker you need to go to. Check the lingo dictionary for all the specifics on the keydownscript.

Something I have used in the past was play "markername", then a playdone command when the playback at that marker was complete, the playdone returns you to were you were before the play command was issued. If you have one main screen that you always return to just use go to marker "X" and at the end of that sequence go to marker "mainmarker".
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top