Discuss Scratch

CelloPlayer12
Scratcher
500+ posts

How do you make a spirite jumo off walls?

I'm making a platform game and I want to make the spirit do jump off walls, Dose anyone know how to do that??


Thx—– @CelloPlayer12

Last edited by CelloPlayer12 (Jan. 30, 2016 11:54:41)

Chameleon24
Scratcher
31 posts

How do you make a spirite jumo off walls?

Well, you could do:
whenclickedforeverifkeyright arrowpressed?thenchangexby3ifkeyleft arrowpressed?thenchangexby-3ifkeyup arrowpressed?thenchangeyby3ifkeydown arrowpressed?thenchangeyby-3iftouchingLeftWall?thenwait0.2secsglide0.2secstox:xposition+25y:ypositioniftouchingRightWall?thenwait0.2secsglide0.2secstox:xposition-25y:yposition
This should work, assuming you already have a script that doesn't allow the character to float in the air. I hope this helps!
Link888
Scratcher
54 posts

How do you make a spirite jumo off walls?

For platformers, including wall jumping; this tutorial by griffpatch is very useful: https://scratch.mit.edu/projects/67727504/

Powered by DjangoBB