Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make a script that lets the character jump AND move?
- EndMakesMC
-
Scratcher
11 posts
How do I make a script that lets the character jump AND move?
I would like to know if it's possible to have a script to make the character move and jumpt at the same time. Here's my script:
when green flag clicked
when green flag clicked
forever
end
if <<key [ right arrow] pressed?> and < <key [ up arrow] pressed?>>> then
move (10) steps
change y by (10)
wait (0.5) secs
change y by (-10)
end
- EndMakesMC
-
Scratcher
11 posts
How do I make a script that lets the character jump AND move?
sry im bad at writing scripts in posts- Theprodigy
-
Scratcher
100+ posts
How do I make a script that lets the character jump AND move?
you could use two different scripts (i.e.
forever
if <key [right arrow v] pressed?> then
change x by (5)
end
if <key [left arrow v] pressed?> then
change x by (-5)
end
end
forever
if <key [space v] pressed?> then
jumping script
end
end
- Greatguy123
-
Scratcher
500+ posts
How do I make a script that lets the character jump AND move?
What @Theprodigy said. If you have two scripts, they can both run at the same time. For example, your script for moving left and right can be running constantly, letting you move left and right all the time, no matter what. Meanwhile, your jumping script is also running constantly, so you can jump any time you want.
- Shieldsam
-
Scratcher
1 post
How do I make a script that lets the character jump AND move?
Hey there,
I'm working on a game at the moment, this seems to work pretty well for jumping and moving:
http://puu.sh/aAqc9/5b3a7e4dc0.png
Ignore the “GameOverBOOL” variable, thats just a separate part of the project.
I'm working on a game at the moment, this seems to work pretty well for jumping and moving:
http://puu.sh/aAqc9/5b3a7e4dc0.png
Ignore the “GameOverBOOL” variable, thats just a separate part of the project.
- RPFluffy
-
Scratcher
1000+ posts
How do I make a script that lets the character jump AND move?
Hey there,
I'm working on a game at the moment, this seems to work pretty well for jumping and moving:
http://puu.sh/aAqc9/5b3a7e4dc0.png
Ignore the “GameOverBOOL” variable, thats just a separate part of the project.
Post a new topic not in others
- EndMakesMC
-
Scratcher
11 posts
How do I make a script that lets the character jump AND move?
you could use two different scripts (i.e.forever
if <key [right arrow v] pressed?> then
change x by (5)
end
if <key [left arrow v] pressed?> then
change x by (-5)
end
end
forever
if <key [space v] pressed?> then
jumping script
end
end
thx!!! I got it! 8D
- dainthus
-
Scratcher
4 posts
How do I make a script that lets the character jump AND move?
How did u get the red script? None of this worked…
Last edited by dainthus (June 21, 2015 20:07:56)
- Discussion Forums
- » Help with Scripts
-
» How do I make a script that lets the character jump AND move?





