For lesson 19, yesterday I had two students try to draw a thin line (empty border as a sprite and place it at the edges then use
if character is touching edge
character bounce off edge
This just made the sprite disappear completely.
They have it set up just like the character and the obstacle, and the character does bounces off obstacle.
Is it because the border really isn’t “empty” even though it’s “see-through”? I tried the same code with just a vertical line on the left edge and it still made the sprite disappear. Does it need to be cropped so it’s really a long thin line?
We found another way to create “edges” to keep the character from flying out, but we’re curious as to what is wrong with this set-up.