Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make a sprite jump realistically 
        ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
- CSLLucasC3
- 
                             Scratcher Scratcher
21 posts
how to make a sprite jump realistically
this is how to make a sprite jump… but realistic.
first, you need the sprite that will be jumping. mine's is pikachu!
[https://projectpokemon.org/images/normal-sprite/pikachu.gif
you can also add a background.
now, add a “gravity” variable. if you have multiple sprites, make one “gravity” variable for each sprite so they will all jump.
then add this code to your first sprite:
that will make it go down every time and eventually stop at it's staring position.
there! and that's it! to use that for more sprites, copy the code to that sprite and change the “gravity” variable to that sprite's variable. like:
bye!
                        
                        
                    first, you need the sprite that will be jumping. mine's is pikachu!
[https://projectpokemon.org/images/normal-sprite/pikachu.gif
you can also add a background.
now, add a “gravity” variable. if you have multiple sprites, make one “gravity” variable for each sprite so they will all jump.
(gravity)
then add this code to your first sprite:
when [ space] key pressed
set [ gravity] to [15]
repeat until <(gravity) = [-16]>
change y by (gravity)
change [ gravity] by (-1)
end
that will make it go down every time and eventually stop at it's staring position.
there! and that's it! to use that for more sprites, copy the code to that sprite and change the “gravity” variable to that sprite's variable. like:
(gravity2)
bye!
- CSLLucasC3
- 
                             Scratcher Scratcher
21 posts
how to make a sprite jump realistically
this is how to make a sprite jump… but realistic.
first, you need the sprite that will be jumping. mine's is pikachu!
[https://projectpokemon.org/images/normal-sprite/pikachu.gif
you can also add a background.
now, add a “gravity” variable. if you have multiple sprites, make one “gravity” variable for each sprite so they will all jump.(gravity)
then add this code to your first sprite:when [ space] key pressed
set [ gravity] to [15]
repeat until <(gravity) = [-16]>
change y by (gravity)
change [ gravity] by (-1)
end
that will make it go down every time and eventually stop at it's staring position.
there! and that's it! to use that for more sprites, copy the code to that sprite and change the “gravity” variable to that sprite's variable. like:(gravity2)
bye!
me special
- SimpleArt321
- 
                             Scratcher Scratcher
8 posts
how to make a sprite jump realistically
but if ya jump then move to a lower platform, player will stand on mid air
                        
                        
                    - coder12679
- 
                             Scratcher Scratcher
0 posts
how to make a sprite jump realistically
I just want to find something to make my sprites jump and the basic skills to make a platform game
                        
                        
                    - CSLLucasC3
- 
                             Scratcher Scratcher
21 posts
how to make a sprite jump realistically
but if ya jump then move to a lower platform, player will stand on mid airi'm not talking about platformers
- mmnagelia
- 
                             Scratcher Scratcher
100+ posts
how to make a sprite jump realistically
Hmm, are you asking for help, or giving a tutorial? Because this isn't the place for tutorials; this is for questions and help.
                        
                            Last edited by mmnagelia (Dec. 20, 2020 02:08:18)
- Nezon
- 
                             Scratcher Scratcher
1000+ posts
how to make a sprite jump realistically
I'm going to report this to be closed as it's a random tutorial for jumping.
Help with Scripts works like someone asks for help, explains their problem, then someone actually comes and helps solve the problem.
                        
                        
                    Help with Scripts works like someone asks for help, explains their problem, then someone actually comes and helps solve the problem.
- Harakou
- 
                             Scratcher Scratcher
1000+ posts
how to make a sprite jump realistically
Hi! It's great that you want to offer some useful tips to other users, but this forum isn't meant for tutorials. Instead, why not create a project and share it in the Show and Tell forum? That way, people can see the scripts you're demonstrating in action, change them easily and remix your project if they want to. 
                        
                        
                    
- Discussion Forums
- » Help with Scripts
- 
            » how to make a sprite jump realistically  ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
![[RSS Feed] [RSS Feed]](http://cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)





