Sprite not behaving as expected (leaving a trail)

I can seem to find out why my student’s “shark” is leaving a trail across the screen. The shark should just move based on the user input. The link to the project is below:


Thanks for checking in on the forum! This behavior occurs due to how the “frame animation” in Game Lab works. There is a teacher note on this activity inside the lesson on the draw loop. I’m also posting a screenshot below, but basically, there needs to be a background block inside the draw loop that is drawn each pass through the draw loop to “cover up” previous instances of a sprite.

Let us know if your student still has problems after reviewing this.

Good luck!


Thank you! it worked!

1 Like