i want to use a more realistic landing animation for my 2D plateformer game and i don't have a proper idea on how to implement it. any help guys ?
i tried this but it didn't help:
# falling state
extends state
func logic():
.logic()
if player.is_on_floor():
next_state = states["jump_end"]
# landing state
extends state
func enter() -> void:
.enter()
player.timer_jump_end()
func logic() -> void:
.logic()
if player.is_on_floor():
next_state = states["idle"]