Tails or Knuckles skin replace?

Status
Not open for further replies.
Is there a way to change Tails and Knuckles sprites in a custom wad? Like overwrite the default ones? I know how to do it with Sonic, but I want to do Tails/Knuckles too. Also would lua be needed? How would I do it if I needed lua?
 
Technically you can't replace Tails or Knux's sprites, but you can auto change their skin through lua using R_SetPlayerSkin.

Code:
if(player.mo.skin == "tails")
                R_SetPlayerSkin(player, "tailscd")
            end
 
you can't replace Tails or Knux's sprites

Code:
freeslot("SPR_TAI2")

if (player.mo.skin == "tails")
        player.mo.sprite = SPR_TAI2         
end

if (player.mo.skin ~= "tails")
and (player.mo.sprite == SPR_TAI2)       
        player.mo.sprite = SPR_PLAY   
end
What you mean?
 
Last edited:
Yeah um... that doesn't actually work.

WARNING: wat.lua:4: bad argument #3 to '?' (number expected, got nil)

Code:
    addHook("ThinkFrame", do
        for player in players.iterate
            if (player.mo.skin == "tails")
Line 4:          player.mo.sprite = SPR_TAI2
            end

            if (player.mo.skin ~= "tails")
            and (player.mo.sprite == SPR_TAI2)
                player.mo.sprite = SPR_PLAY
            end
        end
    end)
 
Status
Not open for further replies.

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

Back
Top