Discuss Scratch

rainbowunicorngirl
New to Scratch
1 post

how do i jump from platform to platform while moving left or right?

I am making a game but i can't find out how to jump while moving. I would like to know how to do it. Help will be gladly used

Thanks for help!
lalash
Scratcher
25 posts

how do i jump from platform to platform while moving left or right?

Check out my platform forum. It tells the basics of a platformer. It's on my signature.

lalash
Scratch On!
Check this out!:http://scratch.mit.edu/discuss/topic/40737/unread/
See my projects and follow me!
Need help? Ask me!

forever
change [Scratch On! v] by (100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
end
jiff17
Scratcher
23 posts

how do i jump from platform to platform while moving left or right?

Do this (not exactly, but it's a base to what you want)

when green flag clicked
forever

if <key [right arrow] pressed?> then
change x by (4)
end
if <key [left arrow] pressed?> then
change x by (-4)
end
if <key [up arrow] pressed?> then
repeat (10)
change y by (4)
end

Last edited by jiff17 (July 18, 2014 17:31:21)


=-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-
-Jiff17 2014

Please check out my featured game, Maze run http://scratch.mit.edu/projects/24393294/
=-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-==-+-
gdpr533f604550b2f20900645890
Scratcher
1000+ posts

how do i jump from platform to platform while moving left or right?

You need to put the left and right movement codes and the jumping code in different scripts or else they can't run at the same time, and you can't jump while moving left or right. Also, be sure to put your coding in a forever loop.

Last edited by gdpr533f604550b2f20900645890 (July 22, 2014 06:31:20)

Powered by DjangoBB