PDA

View Full Version : About key control & action !!help!!!


leenl
04-25-2006, 02:08 AM
Hi everyone ...

i have a problem , when i control a role forward and let it action(ex: move it's head ) in time , but always have error , can't run .....

below is my code :

in Event :

while up is pressed

During: world.forward_go




in forward_go method :

Do together

P.move at speed forward speed = 2.9 meter per second

Do together

P.roll left 0.4 revolutions



someone can help me ? thank !!!!


from TW leenl

Naisa24
03-20-2008, 10:36 AM
The only person I can think of that could help is DickBaldwin! Maybe he could help you figure out why it won't work! Best of Luck!

DrJim
03-22-2008, 12:29 PM
Also really need to know the error message you received!

If you are getting an "index out of bounds" message or something similar, the key event is terminating a loop before it completes - something that will crash Alice. Search for comments in the forum and in Dick Baldwins notes on event whiles and similar terms for more details.