My students and I have run into a problem I can’t solve. We are trying to layer background, sprite, shape, sprite. However, when we call drawSprites() on the second sprite, it redraws the first sprite (already drawn) on top of the shape. I have tried using sprite.depth and I have tried writing separate functions to draw the sprites in hopes of limiting the scope, but no luck. Can anyone help me make this work?
Thanks in advance!!