Need help with doing a Paper-Mario effect!

Void Animates

Just a guy who loves... EVERYTHING!
Hey!! So, I'm aiming to create a Paper-Mario styled effect using LUA, similar to the gif below, but I've tried using the render flag RF_PAPERSPRITE, but the character disappears when reverting to facing forward. I want it so that the character will only face left and right, and not revert to facing forward when the controls aren't held. Could someone help?? Thanks!!

Here's the lua so far;
the lua lol:
addHook("ThinkFrame", function()
    for player in players.iterate do
        if player.mo and player.mo.valid and player.mo.skin == "sketchog" then
            player.mo.renderflags = $ | RF_PAPERSPRITE
        end
    end
end)

(refer to gifs below)
 

Attachments

  • hjawP.gif
    hjawP.gif
    273.8 KB · Views: 23
  • srb20002.gif
    srb20002.gif
    4.9 MB · Views: 19

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

Back
Top