ERROR: Line: 23: Error: Error: overlap can only be checked between sprites or groups HELP

Hi Jason,

I think the problem is actually two lines up. “overlap” is the method that checks whether sprites are overlapping when you run collisions on them, so every time “collide” is called, “overlap” is called behind the scenes.

In the line playerFall.collide(edges);, the student tried to run a collision with the edges, but they have not been defined yet. The student needs to create edge sprites and save them into the variable “edges” for this to work.

Elizabeth

2 Likes