Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to wall jump
- Christiand1014
-
63 posts
How to wall jump
So im making this game and im wondering how to make the sprite wall jump?
- RGBD
-
18 posts
How to wall jump
Do you need only to jump off the wall? Or are you about co create the platformer?
If the former, then:
If you have variables like speed_x and speed_y
Hope you can guess the other three sprites for the remaining directions.
If you do NOT have that variables, and you are just moving your sprite by
If the former, then:
If you have variables like speed_x and speed_y
if <(x position) < [-235]> thenfor the left wall
set x to (-234)
set [speed_x v] to ((0) - (speed_x))
end
Hope you can guess the other three sprites for the remaining directions.
If you do NOT have that variables, and you are just moving your sprite by
move (speed) stepsyou can use this block:
if on edge, bounce
- Christiand1014
-
63 posts
How to wall jump
Do you need only to jump off the wall? Or are you about co create the platformer?
If the former, then:
If you have variables like speed_x and speed_yif <(x position) < [-235]> thenfor the left wall
set x to (-234)
set [speed_x v] to ((0) - (speed_x))
end
Hope you can guess the other three sprites for the remaining directions.
If you do NOT have that variables, and you are just moving your sprite bymove (speed) stepsyou can use this block:if on edge, bounce
I just need to know how to wall jump.
- yaymeiwin
-
52 posts
How to wall jump
forever
if <touching [Wall v]?> then
if <key [up arrow v] pressed?> then
change y by (5)
else
play sound [Ouch! v]
end
end
end
- projectday2
-
4 posts
How to wall jump
you should try this
when green flag clicked
if <key [ w] pressed?> then
change y by (3)
end
- Cyoce
-
500+ posts
How to wall jump
Complete platforming, with ground detection, wall detection, wall jumps, jumps, and velocity.
when green flag clicked
forever
change x by (x velocity)
if <touching [wall v]?> then
set [x velocity v] to ((-1) * (x velocity))
change x by (x velocity)
if <key [w v] pressed?> then
change [y velocity v] by ((0.5) * ([abs v] of (x velocity)))
end
end
change y by (y velocity)
if <touching [wall v]?> then
change y by ((-1) * (y velocity))
if <key [w v] pressed?> then
set [y velocity v] to ((5) + ((0.5) * ([abs v] of (x velocity)))
else
set [y velocity v] to [0]
end
Last edited by Cyoce (Oct. 12, 2014 19:52:42)
- Christiand1014
-
63 posts
How to wall jump
Complete platforming, with ground detection, wall detection, wall jumps, jumps, and velocity.when green flag clicked
forever
change x by (x velocity)
if <touching [wall v]?> then
set [x velocity v] to ((-1) * (x velocity))
change x by (x velocity)
if <key [w v] pressed?> then
change [y velocity v] by ((0.5) * ([abs v] of (x velocity)))
end
end
change y by (y velocity)
if <touching [wall v]?> then
change y by ((-1) * (y velocity))
if <key [w v] pressed?> then
set [y velocity v] to ((5) + ((0.5) * ([abs v] of (x velocity)))
else
set [y velocity v] to [0]
end
I know. This discussion was when I was new

Last edited by Christiand1014 (Oct. 12, 2014 21:10:19)
- mutebender
-
11 posts
How to wall jump
when green flag clicked
forever
if <<touching [Wall] ?> and <<key [w] pressed?> >> then
repeat (10)
change x by (1)
change y by (1)
end
repeat (10)
change x by (-1)
set y to (-0.1)
end
end
end
Last edited by mutebender (March 29, 2015 19:53:48)
- ScratchU200
-
11 posts
How to wall jump
say [I'LL USE ANOTHER FORUM] for ((AS LONG AS IT TAKES)) secs
- TwistedFace
-
4 posts
How to wall jump
when green flag clicked
forever
if <key [ right arrow] pressed?> then
say [I need help]
end
end
- zelda_universe
-
100+ posts
How to wall jump
Search for griffpatch platforming tutorial and find the wall jumping lessons.
If you want a platforming script then check this out
If you want a platforming script then check this out
- KaiBro63
-
2 posts
How to wall jump
I don't know how to do a wall jump with using a backdrop can someone out there help me with this.







- Happysoul05
-
100+ posts
How to wall jump
Please do not necropost. I don't know how to do a wall jump with using a backdrop can someone out there help me with this.
Make new topic by clicking blue button at up-right corner.
Use touching {color} block if you need help.
- Discussion Forums
- » Help with Scripts
-
» How to wall jump