Dimpsuu
Dimpsy
So I was trying to make the ability to be able to climb walls like Knuckles only without needing to glide and instead just double press the jump button to climb a wall if possible... but I'm having slight problems getting this to work.
Here's the code if you'd like to help, that would be nice.
Thank you in advance.
Here's the code if you'd like to help, that would be nice.
addHook("ThinkFrame", do
for player in players.iterate
if player.mo and player.mo.skin == "sonic"
and not (player.pflags & PF_NIGHTSMODE)
if player.mo.oldmomz ~= nil and (player.mo == player.mo.wall) then //Used to check if Sonic is touching a wall
player.charability = CA_GLIDEANDCLIMB
end
end
end
end)
Thank you in advance.