SonikkuBoy
Are you up 2 it?
Lua:
addHook("ThinkFrame", do
for player in players.iterate
if player.mo.skin == "earlysonic"
and not (player.mo.state == S_PLAY_PAIN)
and not (player.mo.state == S_PLAY_DEAD)
and (P_IsObjectOnGround(player.mo) == false) then
player.mo.state = S_PLAY_WALK
end
end
end)
This is a lua script I wrote, it should make Sonic play the walk animation whenever he's in the air except when getting hit or dying.
It's functionnal, but the
S_PLAY_WALK
state plays too fast for my liking. Any thoughts on how I could slow it down? Thank you!