Alice Community  

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

Reply
 
Thread Tools Display Modes
Make Character Fly
Old
logicaldeath
Guest
 
Status:
Posts: n/a
Default Make Character Fly - 10-18-2008, 03:52 AM

in my program, i have programmed the following:
- event where arrow keys will move character.
- event when key "w" is typed, it will call a method "fly" to move character one meter up
- event when "s" is typed, will call a method "descend" to move character one meter down.

basically i'm trying to make my character fly.

moving the character up has no issues but when my character is descending, it will go beyond the ground. how do i make it stop at the ground and not go further?

Last edited by logicaldeath; 10-18-2008 at 04:03 AM.
   
Reply With Quote
Reply

Tags
descend on ground, fly

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