[LUA] R_ProjectSprite-error I need advice on how to fix.

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?

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)

srb20003.png
 
oof that happened to me this last days the solution is:
You need 2 S_ archives between the sprites.
example:
EXAMPLE.PNG

if you try use other sprites you need do a custom state with that sprite name and do that of the image
I hope this can help you:wonderful:
 
Last edited:

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top