Discuss Scratch

SabeTheGemini
Scratcher
11 posts

How to make a jump animation

I really need help with this…..Please help
BKFighter
Scratcher
1000+ posts

How to make a jump animation

Start with your character, then repeat the next two steps until you've completed:
1) Duplicate the picture
2) Modify the duplicate
Make sure to make a duplicate costume each time.
Then just plug the animation into whatever jump scripts you have now.
SabeTheGemini
Scratcher
11 posts

How to make a jump animation

I want it to be smoove like a REAL-LIFE jump….
Ataxaos
Scratcher
500+ posts

How to make a jump animation

SabeTheGemini wrote:

I want it to be smoove like a REAL-LIFE jump….
Do you need help with the scripts or the animations?

Also, jumping in games tend to be not like in real-life.
Realistically speaking, most people can only jump as high as their knees.
iiBonnnieHasAShovel
Scratcher
40 posts

How to make a jump animation

Do this when you have the costumes out and ready –
switchcostumeto costume1v---normalcostumewait0.1secs---howmanysecsitwilltaketochangetothenextjumpanimation

Keep doing that until you reach the final costume of your jump.
andreead
Scratcher
100+ posts

How to make a jump animation

Jump animation? Easy. Make a variable called y velocity. Then add the following script:
whenclickedset y velocityto14.89
ch
change y by (y velocity)

repeatuntiltouchingcolor?changeybyyvelocitychangey velocityby-0.5

Last edited by andreead (April 20, 2016 04:12:49)

andreead
Scratcher
100+ posts

How to make a jump animation

Sorry if I'm bad with the pic blocks. In words the code is:
When flag clicked
change y by y velocity
repeat until touching color of the ground
change y by y velocity
change y velocity by -0.5.
For more info, check out my hyperlinked project below and look at the beetle code.
https://scratch.mit.edu/projects/95433290/
andreead
Scratcher
100+ posts

How to make a jump animation

For the costumes just use the code below:
whenclickedswitchcostumetocostume1 or whatever it's called in your spritewaithowmanyyouwantsecs]nextcostume
SebastianASA
Scratcher
1 post

How to make a jump animation

I need a bit of help.
when my dude jumps, it changes to the jump costume, but I cant make it change back to the normal costume when touching the ground…
Felafel_test
Scratcher
1 post

How to make a jump animation

I am having the same problem, but what I find works is using a state engine

ifkey up arrow pressed?thenset statetojumpingwaitsecsset statetoidle

and then on another script, you can write

foreverif state=jumpingthenswitchcostumeto jumpingif state= idlethenswitchcostumeto idle

Powered by DjangoBB