How to Make a Jumping Game in Scratch | Tutorial
HTML-код
- Опубликовано: 1 июн 2024
- In this tutorial, you can learn how to make a game in Scratch -- a game where a character jumps over moving obstacles to score points!
Try it out:
scratch.mit.edu/projects/editor
Music: “Pacific Sun” by Nicolai Heidlas, Creative Commons Attribution 3.0 Unported. creativecommons.org/licenses/...
What character would you choose for your game, and what would you have them jump over? :D
Spikes
jump
A geometry dash player!
jumping over spikes!
Radd the raccoon
Its actually a character from an old old game I made that inspired most characters in the game im working on
WE ALL WANT YOU AS OUR COMPUTER TEACHER RN!! YOU EXPLAIN SO WELL WITHOUT YELLING OR GIVING DEATH STARES, THANK YOU!!
lol, death stares
So true lol
Yeah true
yeah but the jumping is kinda lazy cause usually to make jumping in scratch u have to code gravity but whatever
I was thinking like that until I become the teacher 😢
THIS LADY IS SO MUCH MORE HELPFUL THAN MY ACTUALY TEACHER TYSM
IKR!!
Fax
IKR IVE BEEN DOING SO BAD IN COMPUTER CLASS
agree !!
MY TEACHER DID NOT EVEN GVE ME TIPS LMAOO
BRO SHE EXPLAINS IT SO SIMPLY ASWELL WHEN WE DID SCRATCH MY TEACHER ACTED LIKE IT WAS ROCKET SCIENCE
My teacher literally just told us to make a game in scratch. I had no idea what the first step even was. Thank you so much for helping!!!
Thank you Zinnea! I did my computer homework easily and my teacher praised me
The video is so helpful and she made it understand in a simple way. I watched it an hour before my practical exam and my teacher was impressed with the results. Thank you so much❤
THIS LADY IS SOOOOOOOHELPFUL FOR ME TO CREATE A GAME ON SCRATCH! THANK YOU!!!
Litterally didnt do anything for my 3 week assign ment and all it took was this 1 video and im saved
your lucky dude
Same
i must agree
THANK YOU SO MUCH!!!! In my class we had a coding project due tomorrow and we have to present them and I didn't have anything to show. You literally just saved my life.
thank you for this, I'm a software developer and my 9 year old son is going for a scratch course next week.. your video is my first look at this and I absolutely love it!
this video is made by scratch-
if you also want the character to have real world physics, you can make a speed y variable, set it to 0 at the start, and for the falling change speed y by -1 and then change y by speed y, and to reset it when the character lands, set speed y to 0, and when he jumps, set it to a certain number
@aidan coote simple
when 🏁 clicked
forever
if (high score)> then
set [high score] to (score)
How can you pervent flying by spamming the buttons?
@@Alden_Redstoner run jump only if he is touching the ground
@@apple_ilev5s how to detect a sprite touching an invisible sprite(the costome is invis, not using hide block)
@@Alden_Redstoner if its using ghost, then it will sense it as normal
I made a game with a reindeer in it jumping over crabs on the boardwalk with the ocean. IT WAS AMAZING! My brother said that he wants to play it everyday! Thank you so much!
i was searching everywhere for a jumping and then i found this- its so simple but so effective :D
Thank you for this tutorial. I followed it with my son (7) and we "made" the game before bedtime! This just made his day!
Awww, yay, this comment made me so happy! -- Zinnea
Wait , bedtime means night time right ? Then how can it make his day ??
@@varshasrivastava5430
That means like it made his day happy
@@bootylicker90000 , it was a joke ....
yes finally i can get my grades up, the teacher doesnt help at all. thank youu!
I'm in 2021 and that's not same
And she is really helpful
@@icfanleader7511 yep!
@@prestigehome614 :)
omg imagen if ur teacher sees this comment
If you want a smoother jump, instead of changing the y of your object directly, use velocity variables and change those, and change the x by that variable.
Pls how can I do that?
what
idk what that means but thx
so (if up arrow pressed)
(set speed y to 16)
change speed y by -1
change y by speed y
@@Katzegaming1 My attempt at explaining: forever [ change x by (velocity) ]
when space key pressed v
set (velocity) to [30]
repeat until [ change (velocity) by [-2] ]
All the scratch tutorials have been really confusing but this one has been really simple
thats because the stratch team makes sure the tutorials are not confusing
my kids love games and this tutorial is so much helpful. Thanks, Scratch team for sharing such content.
Hey Scratchers.
Another way to get a character to jump is to create a variable, set it to 10, and then change the variable by -1 and move the character's y position by that many spaces. You can copy and paste the repeat 10 loop and replace the 10 with a 19. Put the "change by -1" block and the "change y by" block in this loop. It's a little more complicated but it will make the jumping look much more realistic.
@Nut's Channel Don't worry. It took me a long time to learn about Scratch to know how to do this.
this is the jump that i want :D
Can you please explain a bit more. I m 11 yrs old and very new with Scratch. Thanks
@@colourpallette635 It’s pretty complicated so I’ll make it more precise for you.
Basically, make a variable in the “Variables” tab and use the “set variable to” block to set it to 10 (The name of the variable doesn’t matter).
Then, use the “change variable by” block and change the 1 to -1.
Afterwards, use the “change y by” block in the “Motion” tab and replace the 10 with the circular block with your variable name in the “Variables” tab.
Next, add the variable changing block and the y changing block into a “repeat 10” loop found in the “Control” tab.
Finally, copy the loop and in the second variable changing button, change the -1 back into a 1.
I hope I made this more clear. This technique for jumping is very complicated and requires a lot of knowledge about Scratch.
@Axel? Exactly
Omg thank you so much you are a scratch RUclipsr that actually helps! You made this so easy for me. THANK YOU
AMAZING! This tutorial was so easy to follow, and I LOVED it!
Thank you so much! I have my practical test on scratch tomorrow and I can finally make this 😊.
Thank you, I have been trying forever to make something jump and fall back down again. I can't believe it's that simple.
thank you so much it helped me finish my brother project
Me 2 LOL
thank you so much zinnea for making all these tutorials and just--well, being you!
It Literally helped me a lot in making a scratch work
That code actually has a flaw.
You can just jump really fast and get the score really high.
A way to prevent this is by changing the score when the egg gets to the corner, so you can't cheat.
Hope that helps!
O
A*
Thanks a lot, this was my first time in scratch and i did it perfectly, your video is short and easy to understand, the steps super clearly, congrats!!!!
This was very helpful. Wonderful presenation !!! The character I used was the Penguin 2 and I had had it jump over Rocks in the snowy Slopes backdrop.
Thanks for the tutorial this was a school project i had to make after i finished with the project i decided to make this it was so fun to make thanks again !
Best Teacher ever 😂😂❤❤❤🫡🫡
Bro 😎 tanjiro demon slayer fan ❤
you've been a big GAME changer in my scratch technique!
DUDE THIS TEACHER IS INSANE SHE KNOWS WHAT SHE IS DOIND PLEASE COME TO OUR SCHOOL 🙏
My teacher gave this project work for me so I watch this and its really helpfull! Tysm! :D
Hi Uraraka!
@@icfanleader7511 hello!
@@ochakouraraka1605 how are you!?
Thanks so much!😁 I’m a beginner and this is my first game❗️😀
My friends love it!! Keep on making these videos, you can help a lot more people❤️
it was my first game too.
@@TheIroncladCommander it is my first game, and i hope i get better to the point where i start using unity
Yeah me too❤
This person is so helpful. I bet she is a scratch pro
Thank you so much!! We have this project coming up in school tomorrow and we have to make a game so this helped a lot!! Much love Scratch Team!! ❤️❤️
your lucky are teacher does not let us do scratch
Thank you! This helped me a lot doing my recent project!
Hey your project was just amazing just loved it:N
Usually you would use clones instead and variables for the jumps but this is good for beginner's
i have seen many scratch tutorial but it all seems to be very difficult but this one is so easy and i love it
This is amazing this has enhanced my scratch skills!
Thank you now I can do my homework ❤️
I also !!
Hi
Same with me!! I was wondering how to make one, I am also just beginning to use scratch and I love it!
Me also😉
Yeah me too
I’m a real noob at scratch and I just started so videos from this lady is very helpful
This tutorial is really clear, and easy! Good job!
Although I left scratch quite the while ago, I do keep visiting every now and then. It nice to see that the community is still active :D
This is alot better than very long tutorial's, keep it up
This tutorial got me started on scratch, now I make cool 3d games. Thanks.
i had homework about creating a game on scratch...this helped very much, thank you! :)
Thank you so much for this content if I hadn’t seen it my parents wouldn’t have let me continue game devoloping
tysm! now i can make my mom proud of me
Good luck!!!!!!!!
This tutorial deserves way more like than it has.
This woman is the best at the scratch team
this tutorial really helped me to make a game, thanks!
Oh, that's awesome!!
Wow Thanks, Yet another tutorial.
Always helping scratches everywhere if it wasn't for these tutorials scratch wouldn't be the same!
:)
Nah it would be the same tbf
@@leroyspeelt Not many people would know how to use scratch :/
Thank you soooo much! This was so helpful for me. I made the same but with other stuff (Samurai background ninja stickman character and thunder obstacle
beautiful you just hit the nail on the head
i'll try to mix this with the scrolling background
You basically did my homework for me thanks 🙏🏾
She did my project worth 45 points
Vlone. Wervo mine was 100
Brooo ur tutorials are so helpful!!
This is one of the best scratch tutorial I have watched…Thanks Loads
She is so good salute to scratch team 🤩 this also helps so much now I can finally create my own games in scratch 🙂🙂✨✨
This lady is so helpful for school. I've been doing so bad in computer class
I’ve been doing so good that the teacher is having trouble finding projects for me to do.
I litterly understand code I have no idea why I can’t code.
me just copying exactly what she's doing parents "good job"
Me: Following a tutorial
When I’m done parents come in
Parents: Good job! You’re so smart!
Me: Umm…. Yeah?😅
Professional: copies code from Stack Overflow
Boss: Good job!
Wow she should be getting paid from scratch for this type of content. Very easy to follow and professional. Great tutorial.
thank youuu, i'm new to scratch and proudly make one game following the tutorial. clearly explained
Thanks for making these! All these lessons can really help people that just joined scratch!!
First like!! I love your scratch tutorials since I have really got better with them!!
:D I'm so glad!!
Happy you feel glad!
@@Zinnea hey zinnia what happens if the character jumps before the egg comes this will count as an unearned point to them which isn’t good
@@iizac0034 That's a good point! You could fix it by having it only change the score by 1, if the difference between the x position of the Egg and the x position of the chick, is less than a certain number
@@Zinnea i just join scratch today but i can't comment and share
The jump part really helped me,THANK YOU for the help
Thanks! Throughout the holidays my computer teacher told us to make a game on scratch as homework
Thank you, 10000x better than my teacher. This video is not only informative, but very easy to understand. I’ve had trouble with other scratch tutorials, but this is the only one I can understand 👍🏻
note: why tf did I write this lmfao
Yeah I agree😂
Thank you! Now I can do my college homework :)
No offense but I’m doing this in 4th grade how are u in college and doing this
@@anayakhan7969 im doing this in 6th grade..
@@AKBBallin me in 7th
@@LazaRoblox now I’m in 7th
@@AKBBallin good
Thanks so much. I'm just starting my first project and you helped me a lot :D
This is incredible! Thankyou so much!
i am making a side scroller and needed to know how to jump so thanks!
If you dont know how to make a character jump, defenitely dont use this method. Use a y velocity variable and set it to 13 or whatever you want it to be. Also, dont just throw yourself into a scroller game, scrolling in scratch is hard
@@habibikhader I know
this is so cool I feel like an actual coder! :D
:D That's awesome! You *are* an actual coder!
@zinnea hey I used the pixel art tutorial and this one and its super cool!
It’s called scripting not coding 😅
@@Zinnea I did the verbal pet one
@@Hindle71 add,
I can still remember this so easily. Brings back memories...
No scratch = no knowledge about coding... Thanks for existing, Scratch!
Thank you, really helped my 11 year old son make his homework :)
I'm so glad!
he's lucky i just have to do math for homework
@@trainedkirbylife 😂 True but math is easy
AMAZING! This tutorial was so easy to follow, thanks a lot!
Uhm u see click space 2 times at once u see the problem
I love how you show the mistake and explain how to fix it not just say the code without explaining I just tried the game rn. It is super cool and I love your way of talking 🤗😆😃
Thanks for the help i only needed the jump😅 but when I started scratch for a loong time I actually needed this to do games!
this helped sooo much!!! my dream is to become a coder, and i think this is a step closer!! thank you!!!!!!!!!!!
Hey Zoey, I just want to say THANK YOU.
:D You're welcome!
@DIVINE CRAFTS first choose ur 1 level backdrop and then for level 2 choose ur backdrop again and get the block switch backdrop to and whatever ur 2 backdrop is
Very nice and simple tutorial! :)
Best scratch teacher
Wow! Zinnea, you are really good! Your videos help me become more of a Scratcher! Thank you so so much!
She became the member of scratch team
I have made this before the tutorial, but it had moving background props, various opsticals, and a duck move!
I’m a advanced scratcher I don’t need it
@@nathankwok1292 a d v a n c e d
@@randomappleman5243 a d a n c e
THANKS YOU TEACHED ME BETTER THAN MY TEACHER❤❤
Thank you so much 😊
I was not understanding any video but when I see this one I even make my own game
Thanks again
You can also move the change score to the egg following the glide, this will prevent spamming jumps to rack up points
Scratch Team: How to make a Jumping Game
Me: How to make an actual platformer with custom blocks, not many motion blocks, no clones, and floor/ceiling detection.
also 1,100th comment wooo
Edit: I don’t have the tutorials anymore but I still want gravity in this tutorial
The explanation is really good and it was really helpful.
Why not make a random obstacle give a good/bad surprise? We could touch it and it could increase/decrease our score greatly!
We could also make a "jump height" variable!
And maybe we could make some sprites come along the way to increase our score!
this is like the google dinosaur game
yes!
Could you tell me what name of the cactus plant in scratch plant
@@mamtanaik9809 You can find it in this Scratch project! scratch.mit.edu/projects/452687969/ (it's not in the Scratch sprite library but you can put it in your backpack)
Big bruh moment
@@Zinnea thanks a lot . I am Jiya I was on my mother's mobile ( known as @Scratch_Gamer_Jiya on scratch )
There is a bug. The score changes every time the bird jumps rather than when it avoids an obstacle. I corrected this by saving x position of the obstacle in global variable and compare it with bird’s x position. I don’t know whether there is simpler way.
instead of changing the score on the jumping logic, you could add the score logic after each egg has reached the new position
Howtodo that@@AgustinMarquezBraconi
This is actually a bit more complex than I imagined it be, but it’s still the easiest way to make a simple game like this
this lady single handedly saved me from failing E-Sports 😭
very fun! i played this for 2 hours! and this took a lot of time for me to make this.
My sprite just jumps up and down but the screen won’t move