Alice Community  

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

Reply
 
Thread Tools Display Modes
Smooth Movement
Old
Azerilli1
Guest
 
Status:
Posts: n/a
Question Smooth Movement - 11-21-2005, 02:25 PM

I've been working on a game. I have events that move the tank one meter at a time, with jerkey animation. It move and stops, and you have to press the key again to make the tank move another meter. How do I make things run smoothly? Like, move whilethe Key is pressed. As long as the key is pressed, the tank would move. How do I do that
   
Reply With Quote
Old
EdLaFave
Guest
 
Status:
Posts: n/a
Default 11-21-2005, 05:14 PM

Create a new event for when a key is pressed. Right click the event and you can change it to while a key is pressed. Then for the during part of the code just put Tank.MoveAtSpeed(1 m/s). That should work.
   
Reply With Quote
Old
kingsamses
Guest
 
Status:
Posts: n/a
Default 11-23-2005, 03:49 PM

You could try using the event "Let the arrow keys move <subject>".
   
Reply With Quote
Reply


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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.