🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Well done Rick, I'm only on the basics still working on a 2d platformer. I just need to figure out how to calculate an even vector distance for a rectangular object.... I might be screwed lol

What engine are you using? We might be able to help you?

Thanks, I ended up using the standard vector calc with an x limit. Not the most mathematically correct but it did the trick.


Straight line distance vector

math.sqrt(((x1-x2)*(x1-x2)) + ((y1-y2)*(y1-y2)))

and

math.abs(x1-x2) for the x limit

(steals code) i was wondering how to do that, in my game.