True Tile Collision

#21

UPDATE:

  1. Added dashing ability (included in the example project)
  2. Changed state variable names to the more conventional format
--STATES	
inst.is_grounded	  	= false
inst.is_jumping	  		= false
inst.is_dashing	  		= false						
inst.is_wallsliding  	= false
inst.is_on_ledge	  	= false
inst.is_hurt		  	= false

I’ll update playable demo a bit later.

0 Likes

#22

UPDATE:
1. Added hurt state - kickback and disabled player input on physics. Call with got_hurt(self, xspeed, yspeed);
2. In the example, there are added tips for controls.

As one of the future feature, I’m thinking to add crouching, but that will work if the player is taller than one tile height.

1 Like