Otherwise empty project with 1 sprite. Sprite has 2 trivial rules:
when right-arrow key pressed
point in direction 90
move 10 steps
when left-arrow key pressed
point in direction -90
move 10 steps
Behavior:
In general, as expected. HOWEVER, after moving in 1 direction, when direction is reversed, on the FIRST KEYSTROKE for the OPPOSITE DIRECTION, spite "jumps" at a 45 degree angle, a few hundred steps.
Bug is completely replicable and behavior is reversible. VERY FRUSTRATING!
Any thoughts? Is this a known problem? Thanks, Mark
Offline
hm... maybe you should make it,
[When right-arrow key pressed]
[switch to costume (facing right)]
[move (10) steps]
[When left-arrow key pressed]
[switch to costume (facing left)]
[move (-10) steps]
it might work.
EDIT: your scripts work for me. is it scratch 1.4? if so, do you have a mac or a pc? that might have something to do with it.
Last edited by imacat (2010-12-21 20:04:48)
Offline
If the costume center is off, a lot of problems like that can happen.
Try this: open the costume in the paint editor. Click the button under the color palette labeled "Set costume center". Now, adjust the crosshairs that show up until they're near the center of the sprite and try again.
If that doesn't work... I really don't know what the problem could be.
Offline