Tag Info

New answers tagged


You probably need to check for collision first, then check for depth. You can get the wall you are colliding with using wallHit = instance_place(.., .., oWall) then compare depth with wallHit.depth. Since you are checking collision twice, once for movement on each axis, you will need to check twice just in case there is a different collision result in each ...

Top 50 recent answers are included