A climbing Link to the future (maybe)

Share and discuss custom SMBX graphics.
IttaBaby
Fighter Fly
Fighter Fly
Posts: 44
Joined: Sat Apr 08, 2017 8:19 pm

A climbing Link to the future (maybe)

Postby IttaBaby » Tue Jul 05, 2022 1:32 pm

An alternative to Link where he climbs rather than shapeshifting.
You will need this code, by the magnificent MrDoubleA:

Code: Select all

function onStart()
	Defines.player_link_fairyVineEnabled = false
end

local function canUseClimbAnimation()
    return (
        player.character == CHARACTER_LINK
        and player.climbing
        and player.forcedState == FORCEDSTATE_NONE
        and player.deathTimer == 0
        and not player:mem(0x13C,FIELD_BOOL) -- alive
    )
end

local climbAnimationTimer = 0
local climbTurnTime = 8
local climbFrame = 25

function onTickEnd()
    if canUseClimbAnimation() then
        if player.keys.up or player.keys.left or player.keys.right then
            climbAnimationTimer = (climbAnimationTimer + 1) % (climbTurnTime*2)
            SFX.play{sound = 71,delay = 9}
        end

        if climbAnimationTimer >= climbTurnTime then
            player:setFrame(-climbFrame)
        else
            player:setFrame(climbFrame)
        end
    else
        climbAnimationTimer = 0
    end
end
And this character sprite:

Image

A simple little thing that seems like it should have already been made, but now it has!
A note is that there are a few quirks regarding how Link kills enemies below him, but it's nothing important, just having a weird inconsistency with the death effect for enemies below him.

Return to “Graphics”

Who is online

Users browsing this forum: No registered users and 2 guests