Why are the sprites in this student’s project “smudging”? We remember this happening with the shaking blender activity and we just put a background at the top of the draw loop to cover up the old version of the sprite but can’t figure out what the issue is here.
The only place the navy background is called is in the intro function. It runs once at the beginning and never again, so it isn’t drawn to cover up the sprites as their position changes. That’s why the “smudging” occurs because a new background needs to be drawn each time through the draw loop to create the animation effect.
I am having similar problems with smudging sprites for various students on lesson 7’s project actually. Any help is appreciated or tips to ensure the smudging doesn’t happen.
Is the fill command part of the problem? Just not sure how to fix that when it happens for students.
I believe you are referring to the smile sprite appearing randomly but not disappearing in the animation? If yes, this is happening because for the smile sprite, the var createsSprite block is inside the function draw instead of outside it like the other sprites. This causes the sprite to be recreated in a random spot each time through the loop. The var createSprite AND the setAnimation for the sprite should be outside the function draw but keep the smile.rotation in the function draw. When you do this, the sprite should animate like the others.