Discuss Scratch

4321SWAG
Scratcher
23 posts

how do i make a sprite jump then fall

please tell me!!

THIS IS MY SIGNATURE, SO IT APPEARS AT THE BOTTOM OF EVERRY ANSWER


when green flag clicked
set [(username) v] to [FOLLOW 4321SWAG]
add (username) to [4321SWAG v]



THANKS:):D:D:D:D:D
ScriptedAwesome
Scratcher
1000+ posts

how do i make a sprite jump then fall

4321SWAG
Scratcher
23 posts

how do i make a sprite jump then fall

hey @ScriptedAwesome, thanks so much!!, I really give you gratitude, plus, you get a shoutout

THIS IS MY SIGNATURE, SO IT APPEARS AT THE BOTTOM OF EVERRY ANSWER


when green flag clicked
set [(username) v] to [FOLLOW 4321SWAG]
add (username) to [4321SWAG v]



THANKS:):D:D:D:D:D
Toasty_Boy
Scratcher
100+ posts

how do i make a sprite jump then fall

Although @ScriptedAwesome gives the most basic jumping you could create a variable for changing the y-position by that variable.
Check out my project Here Then press look inside, and navigate to the ball sprite.

“Helping others is the secret sauce to a happy life.” – Todd Stocker
This is why I aim to help others.
To give them a happy life too.


–Toasty_Boy–
4321SWAG
Scratcher
23 posts

how do i make a sprite jump then fall

thanks @Toasty_Boy !!!

THIS IS MY SIGNATURE, SO IT APPEARS AT THE BOTTOM OF EVERRY ANSWER


when green flag clicked
set [(username) v] to [FOLLOW 4321SWAG]
add (username) to [4321SWAG v]



THANKS:):D:D:D:D:D
cs240487
Scratcher
26 posts

how do i make a sprite jump then fall

This is one of the best ways to do it:
when green flag clicked
forever
if <key [...] pressed?> then
set [y velocity] to [11]
end
change [y velocity] by (-1)
change y by (y velocity)
if <touching [ground] ?> then
if <[y velocity] > [0]> then
repeat until <not <touching [ground] ?>>
change y by (-1)
end
else
repeat until <not <touching [ground] ?>>
change y by (1)
end
end
end
end
You'll have to put this into a custom block that runs without screen refresh.
4321SWAG
Scratcher
23 posts

how do i make a sprite jump then fall

thanks!! I really appreciate that!!

THIS IS MY SIGNATURE, SO IT APPEARS AT THE BOTTOM OF EVERRY ANSWER


when green flag clicked
set [(username) v] to [FOLLOW 4321SWAG]
add (username) to [4321SWAG v]



THANKS:):D:D:D:D:D
gtoal
Scratcher
1000+ posts

how do i make a sprite jump then fall

1) implement gravity
2) jump up
3) gravity will make it fall without you doing anything special to make it happen
christmas-cheese
Scratcher
1 post

how do i make a sprite jump then fall

how do you get a velocity block?
Charles12310
Scratcher
1000+ posts

how do i make a sprite jump then fall

christmas-cheese wrote:

how do you get a velocity block?
This topic is about 4 months old, and the problem has already been solved. Please do not necropost old topics. Make a new topic for more help.


A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
Harakou
Scratcher
1000+ posts

how do i make a sprite jump then fall

christmas-cheese wrote:

how do you get a velocity block?
The orange one? That block is just a variable named velocity. You can create one in the variables tab.
asivi
Scratcher
1000+ posts

how do i make a sprite jump then fall

@christmas-cheese go to projects for starters to practice with https://scratch.mit.edu/tips and learn.

Powered by DjangoBB