Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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.