#2D wall jump

1 messages · Page 1 of 1 (latest)

muted bone
#

So im making a 2d platformer similar to celeste and am REALLY struggling with the wall jump so does anyone have a wall jump script?

Heres the 2D script btw it may be the problem IDK

local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer

repeat
wait()
until Player.Character

local Player = Player.Character
local HumanoidRootPart = Player.HumanoidRootPart

local Positioner = Instance.new("BodyPosition", HumanoidRootPart)
Positioner.MaxForce = Vector3.new(0, 0, math.huge)
Positioner.Position = Vector3.new(0, 0,HumanoidRootPart.Position.Z)

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CameraSubject = Player.HumanoidRootPart

game:GetService("RunService").RenderStepped:connect(function()
Camera.CFrame = CFrame.new(HumanoidRootPart.CFrame.X, HumanoidRootPart.CFrame.Y, HumanoidRootPart.CFrame.Z + 30)
Camera.FieldOfView = 50
end)

foggy radish
#

what have you tried so far for the wall jump?

#

i can give you some ideas such as, if a player touches the hitbox of the wall, then it will trigger him holding onto the wall (you can definitely adjust how long you want him to hold onto it, incase you wanted a wall slide or just a wall jump), and then detect if hes holding onto the wall at which allows him to wall jump which can either be a jump + upward dash type, or just another jump

muted bone
#

Omg thanks for the question! So i was trying to make a wall slide but i did think that was above my skill level but i was primarily aiming for an sliding upward wall jump

foggy radish
#

That's as far as I can help you until you begin scripting this

#

Believe in you twin

muted bone
#

K thx

#

Wait a sec