The Sin Heartless
Voluntary Exile
Since I don't like hanging out on Discord, I figured I'd post this here instead.
For some reason, despite having the sprites for the Fall animation in the WAD itself, this error keeps popping up when I use the custom mid-air roll I tried to code in.
Any idea as to how I could go about fixing this?
For some reason, despite having the sprites for the Fall animation in the WAD itself, this error keeps popping up when I use the custom mid-air roll I tried to code in.
Any idea as to how I could go about fixing this?
Code in question:
addHook ("ThinkFrame", function()
for player in players.iterate do
if player.mo.skin ~= "ann" then
continue
if player.custom1tapping and P_IsObjectOnGround(player.mo) == false and player.mo.state == S_PLAY_FALL then
P_SetMobjStateNF(player.mo, S_PLAY_ROLL)
player.pflags = PF_SPINNING
P_Thrust(player.mo, player.mo.angle, player.mo.speed+10*FRACUNIT)
S_StartSound(player.mo, 20)
end
end
end)