Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can i make a sprite be able to jump and land on to another platform?
- Jesterknight
-
Scratcher
77 posts
How can i make a sprite be able to jump and land on to another platform?
Last edited by Jesterknight (May 5, 2016 23:19:37)
- speedox2
-
Scratcher
1 post
How can i make a sprite be able to jump and land on to another platform?
Thanks so much I will put you in my credits!
- ShadowScizor
-
Scratcher
100+ posts
How can i make a sprite be able to jump and land on to another platform?
the simple platform script in my signature could be a good start 

- Jesterknight
-
Scratcher
77 posts
How can i make a sprite be able to jump and land on to another platform?
thanks Cyoce
but your script makes my sprite get stuck in the middle of the platform sometimes.
but your script makes my sprite get stuck in the middle of the platform sometimes.
say Cyoce please help for (forever) secs
Last edited by Jesterknight (May 10, 2016 23:14:49)
- phershenson
-
Scratcher
7 posts
How can i make a sprite be able to jump and land on to another platform?
I make a code so when up arrow key pressd go to move a step
- Bballking15
-
Scratcher
2 posts
How can i make a sprite be able to jump and land on to another platform?
HELP IM STUCK

- FloXtrem
-
Scratcher
1 post
How can i make a sprite be able to jump and land on to another platform?
You could try the command
when green flag clicked
forever
if <> then
<touching color [#e35bd7] ?>
else
end
end
- xXcrispy11Xx
-
New Scratcher
1 post
How can i make a sprite be able to jump and land on to another platform?









- water875
-
Scratcher
1 post
How can i make a sprite be able to jump and land on to another platform?
okay, not much.what category is the velocity thingy in[quote=TaylorSwftie13]I want to know how to make a sprite jump and land on another platform. I also want to know how to walk on a platform (another sprite) without going through it. I just joined scratch and I am just learning the basics. Thanks! (P.S if you could give me the script that would be even more helpful) :)[/quote]
when green flag clicked
forever
if <key [up arrow v] pressed?> then
set [y velocity v] to [6 ]
end
end
- lconaway
-
Scratcher
500+ posts
How can i make a sprite be able to jump and land on to another platform?
Please don't spam the Scratchblocks or randomly post irrelevant messages on other people's topics. Also, “Kill you” might be a bit extreme, even if you didn't mean it literally. If you want to discuss a book you like, you can head over to the “Things I'm Reading and Playing” forum, where you can talk about it as much as you like.when green flag clicked
forever
say [Read warriors] for (555555555555555) secs
if <you don't like warriors> then
say [KILL YOU!] for (2) secs
end
Thanks!

- lconaway
-
Scratcher
500+ posts
How can i make a sprite be able to jump and land on to another platform?
If you would like to learn how to make a platformer, I would look up “Platforner Tutorial”. There are many great tutorials by Scratchers that teach you how to make a great platformer. I love platformers, but I didn't know how to make one, so I found a tutorial and made a platformer!
I find them very helpful.
I find them very helpful.- loser311
-
Scratcher
16 posts
How can i make a sprite be able to jump and land on to another platform?
Sorry dude I do not know. None of the posts here which kind of made sense to me worked either.
- Puplover19
-
Scratcher
2 posts
How can i make a sprite be able to jump and land on to another platform?
does not work
- adriantheboss
-
Scratcher
1 post
How can i make a sprite be able to jump and land on to another platform?
it wont work
- modgy5
-
Scratcher
7 posts
How can i make a sprite be able to jump and land on to another platform?
Wow… amazing. This helped so much. But how do you come up with these????
broadcast [Thisisamazing:D ]
- zebry
-
Scratcher
12 posts
How can i make a sprite be able to jump and land on to another platform?
Here ya go. I definitely over-commented it, so feel free to only look at the comments for parts that don’t make sense to you. Also, I apologize if the comments sound patronizing; that’s just how my comments turn out when I’m explaining, not documenting.Thanks so much! I need this for one of my games I've been meaning to make for ages.when gf clicked
set [fall v] to [0] //this is how fast the character is currently falling
set rotation style [left-right v] //makes the player face the right direction
forever
change y by (fall) //this moves the character according to how fast they're falling
if <touching [platform v]?> then //oh no! this last step pushed him into a wall! let's reverse it!
change y by ((0)-(fall)) //moves him the same amount in the opposite direction, reversing the move
if <key [up arrow v] pressed?> then //player is telling the character to jump
set [fall v] to [10] //jumping makes you move upwards faster!
else //the player wants to land, not jump
set [fall v] to [0] //stop his fall
end
else //he is not touching the ground—airborne!
change [fall v] by (-1) //since he is not on the ground, gravity makes him fall faster
end
if <key [left arrow v] pressed?> then //player wants to move left
point in direction (-90 v) //face left
move (10) steps //move left
if <touching [platform v]?> then //he hit a wall!
move (-10) steps //go back
end
end
if <key [right arrow v] pressed?> then //player wants to move right
point in direction (90 v) //face right
move (10) steps //right left
if <touching [platform v]?> then //he hit a wall again! (clumsy one, isn’t he?)
move (-10) steps //go back
end
end
end
Last edited by zebry (Feb. 26, 2017 07:56:02)
- Darwin25
-
Scratcher
1 post
How can i make a sprite be able to jump and land on to another platform?
Omg thx sooo much thx thx thx THX
- nonethenones
-
Scratcher
100+ posts
How can i make a sprite be able to jump and land on to another platform?
Omg thx sooo much thx thx thx THX
Please don't necropost a old topic/thread.
- HoofEMP
-
Scratcher
100+ posts
How can i make a sprite be able to jump and land on to another platform?
is this the official Scratch ****posting topic
Last edited by HoofEMP (March 14, 2017 04:49:26)
- awesome5185
-
Scratcher
1000+ posts
How can i make a sprite be able to jump and land on to another platform?
tryHi, please don't necropost. This is an old topic and is already solved. Thanks.when [up arrow] key pressed
jump
end
define jump
repeat ()
change y by ()
if <touching color ()> then
repeat (distance from ground sprite)
change y by ()
- Discussion Forums
- » Help with Scripts
-
» How can i make a sprite be able to jump and land on to another platform?

















