Collision not working

When I begin to run my program, I purposely don’t jump to see if the collision between scarfy and the nebulae are working. Scarfy just runs through the nebulae as if they aren’t there. I even moved bool collision{} outside the while loop to see if it would do anything but it didn’t. I believe it has to be a problem with the collision itself. Any help would be very much appreciated.

try replacing scarfyData.rec.x with scarfyData.pos.x (same goes for rec.y on the next line)

That was it. Thank you for the reply!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms