Slick Forums
http://slick.ninjacave.com/forum/

Phys2D, tiled and climable objects.
http://slick.ninjacave.com/forum/viewtopic.php?f=9&t=6413
Page 1 of 1

Author:  EntityReborn [ Sun Mar 24, 2013 3:58 am ]
Post subject:  Phys2D, tiled and climable objects.

I was curious as to how one would go about detecting when the player is inside a "climbable" tile, and pushing towards a collidable tile as follows, and how one would apply a climbing effect:

Player: O
Collidable: X
Climbable: H (Think ladder)

_HX
_HX
_HX
_OX

Player is pushing towards the X's and ideally will be climbing upwards along the H's.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/