Alice Community  

Go Back   Alice Community > Alice 2 > Bugs and Troubleshooting

Thread Tools Display Modes
bug skating LT 1 after turn
Douglas W. Goodall
Posts: n/a
Unhappy bug skating LT 1 after turn - 07-21-2006, 05:15 AM

I wanted the skater to skate a square.
The attached world demonstrates the bug.
If you change the skating methods to 1, it works fine.
At .25, she just turns around, and goes nowhere.

btw the Manage Attachments dialog has a bad link to the a2w icon.
Attached Files
File Type: a2w bug skating LT 1 after turn.a2w (3.13 MB, 513 views)
Reply With Quote
gabe's Avatar
Status: Offline
Posts: 461
Join Date: Jul 2005
Location: Pittsburgh, PA
Default 07-26-2006, 11:09 AM


The problem lies in your line "IceSkater.skate(HowManySteps=0.25)". If you look at the IceSkater.skate method, you will see that the parameter HowManySteps is used in a loop. As such, you cannot loop a set of instructions a fraction number of times. You will have to use whole numbers, or modify the skate method to act the way you want it to act.
Reply With Quote

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