Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 395 Bytes

File metadata and controls

4 lines (3 loc) · 395 Bytes

Jumping_Landing_Godot_KinematicBody2D

Script for jumping and landing animatedsprite godot engine

In Men.gd I save the y position of the previous frame in yframe and compare it with the current one, if current position.y < yframe means the player is jumping, now if position.y > yframe it means our player is landing. . works even for when the player is walking on the map and going downhill.