Help with Interactive card on Lesson 14 - need sprite to turn and walk off screen

I have a student that wants his boy to turn right and walk off the screen.
When the sprite changes animations and gets ready to move - it jumps from the bottom to the top right corner.
It works (the boy turns, but doesn’t move) when we don’t have the command
kid.x = kid + 1; inside the loop, but as soon as we add movement - his sprite jumps.

Here is the code:
https://studio.code.org/projects/gamelab/0w1s0r8-HMzsW1ilcoCQ1WpHXSXD8KngD3v_7uTmxw4

Thanks a bunch - I’ve used forum lots and all the help is wonderful.

Problem solved. After putting it aside for a bit, we caught the bug. Of course it was simple - just missing .x when updating the kid sprite.

2 Likes