PDA

View Full Version : bug skating LT 1 after turn


Douglas W. Goodall
07-21-2006, 04: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.
fyi

btw the Manage Attachments dialog has a bad link to the a2w icon.

gabe
07-26-2006, 10:09 AM
Douglas,

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.