1
General / Determining if player is on air/ground
« on: January 13, 2016, 04:06:17 pm »
I've implemented some gravity and collision in my 2d side-scroller/platformer game, but i needed to know if the player is currently grounded or mid-air. I really can't think of anything, especially because I can't define a fixed minimum height (because of the tilemap i've implemented can have some weird combinations and i would like to avoid imposing limits to the level design).
Anyone has an interesting insight on this?
Maybe I'm just looking at it from the wrong perspective...
Anyone has an interesting insight on this?
Maybe I'm just looking at it from the wrong perspective...