Colliding physics and non-physics items

Hi Everyone,

One student had a problem getting collision events to work when one object is using physics and the other object is not. One solution is to use collision rectangles:

https://stackoverflow.com/questions/18239440/collision-between-an-object-with-physics-and-another-non-physics-object-in-game

To see the position of the invisible collision rectangles use this command:

draw_rectangle(x1,y1,x2,y2,false);

Good luck,

Bob

Leave a Reply

Your email address will not be published. Required fields are marked *