Hello. I am making a pretty advanced game called "n-" (May be changed.) One of the key features the ability to walljump from side to side. I have a fairly simple method, but you can still move side to side on the wall and you cant actually jump. Heres the link to the project and thanks for looking!
http://scratch.mit.edu/projects/newareagle/234638
Offline
Wow. I'm a big fan of the original game, and...here goes...
Make a new variable called walljump-angle. Play around with the value to get the right effect (keep it positive)
[blocks]<if><<<touching color[ color of walls <and> <key[ up arrow ]pressed?>>>
<if><( <{ x velocity }> <<> 0 )>
<set{ x velocity }to( <{ walljump angle }>
<end>
<if><( <{ x velocity }> <>> 0 )>
<set{ x velocity }to( (( <{ walljump angle }> <*> -1 ))[/blocks]
<end>
<end>
Last edited by bhz (2008-08-07 15:53:50)
Offline
Good idea, i was thinking also if I made it so when you touch the wall, it sets how fast you were going when you hit it, then when you press up, you jump a little bit and then go xvelocity based on your old xvelocty * -1. Maybe i will try implementing it in my full game!
Offline