Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
When is key is pressed (allow repeating of pressed keys?)
Old
Mike2732
Guest
 
Status:
Posts: n/a
Default When is key is pressed (allow repeating of pressed keys?) - 09-30-2009, 05:44 PM

I've created a game and used the event "when 'key' is pressed do 'method'" but the problem is that I have to repeatedly press & release the key to make it do the method, I want to be able to hold down a key and have it repeat the method while I hold it down, and stop when I release it.

How do I do this?

Thanks
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 09-30-2009, 07:16 PM

Right click on the command of When key is clicked and change it to while key is held. Then put your method into the during column.
   
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump



Copyright ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.