Scratch Tutorial | Apple Catcher | Scratch Easy Beginner
Vložit
- čas přidán 22. 07. 2024
- In this scratch tutorial, you will learn how to make a simple game where you can control the bowl and catch the falling apples.
My share project - scratch.mit.edu/projects/4349...
Edit: one small mistake make sure you add the "show" block under "when green flag is clicked" for the apple sprite.
▬▬▬▬▬▬▬▬ Contents of this video ▬▬▬▬▬▬▬▬
0:00 - Intro
0:43 - Game Setup
1:53 - Apple Sprite
5:50 - Bowl Sprite
7:53 - Win Sprite
8:36 - Final Demo
In this game, the player will control the bowl with the arrow keys moving it from side to side. The objective of the game is to get 50 points.
We will be learning the following concepts in scratch
- Broadcast Messages
- Use pick random
- Variables
- Operators
- Condition Check
We made a small mistake on this recording please add "show" block after "When Green flag clicked" on the "Apple" sprite. If you face any problem with the game click on the video description, there is a link to my share project in scratch, you can take a look at all the code there.
i have no problems
you copied scratch team tutorial
Wow thanks!
I di not see this so i had to delete the apple sprite
huge respect bro, just started learning about scratch in my school and already made a frickin' game!
thank you very much for this vid i was so stressed yesterday about my demonstration in scratch but now it worked so i can pass my project tomorrow=)
You're welcome! glad we could help
Thank you so much, this was so easy to understand and it helped me with my school project.
Glad it helped!
hey! could you help me? when I click the left arrow it stops, just goes to the right, tks.
Thanks for this vid because my class was doing a scratch comp And it was who ever could make the best scratch game wins and it was for homework so I looked and saw this vid and copied it step by step which made me win👍👍 so thanks also love your vids
That is awesome! thanks for checking us out 😁
Really awesome. I have followed the same steps and turned into an amazing game..
This helped me in my project
Glad it helped!
Same here
@@KidsCodingPlayground the chicken ( i was using a chicken not a bowl😅 ) is upside down and the apples and baseballs arent falling down😢
Is there any coding to end the game if someone misses to catch the apple 3 times ? Thank you.
Amazing tutorial, really helpful. Just wanted to add an issue I faced and how I corrected it:
For the bowl's code, when you added the code for the "Left Arrow Key being pressed" and the bowl moving to the left, the video shows you added a statement saying "Point in direction: -90". That bit caused an issue where the bowl would flip upside down whenever I pressed the Left-arrow key. I changed that "-90" to just "90" and it worked perfectly. Great tutorial as it helped me build my first game project. Thank you very much for this video
7:38 - Look at the video at this timestamp where I explained about the bowl flip upside down. In order to keep the bowl from flipping upside down, you need to set the bowl to rotate left and right only. If you don't set that, it will flip upside down went it point to another way example -90. Yes you are right if you are using change x by negative you don't need to change the direction. But if you decided to change the direction, you can simply use "move # step".
If we move the basket on the X axis, why change its direction?
Thanks soooo much it was great helped me alot
Glad it helped!
MY little brother did this and he also included a game over if you miss the apple he really loves your youtube channel and i like it to AMAZING CHANNEL!!!
glad u like it, thanks for supporting our channel. Please consider subscribing if you haven't already tyvm.😁
Amazing tutorial. Keep up the good work my guy
Appreciate it!
I am facing a problem, when i play the game the bowl is not moving properly.
Thank you very much! I’m working on coding more games soon and this video is plus 1 more game!😁😎👍👍👍👋🤩
Thank you soooo much it was easy and my mom and dad will be prod of me thank you so so so much. have a nice day
You are so welcome! make sure you add "SHOW" after "Green Flag is clicked" on the Apple Sprite, we have 1 small bug in this video.
Thank you for this tutorial
It helped me in my exam
😊
You are welcome glad we are able to help.
this really helped. thanks a lot!
Huge help thank you so much this was my final exam for technology
good glad to hear that, please subscribe to us if you haven't already tyvm.
I know it was mentioned in the video but I still need help how do I fix the cup flipping option I couldent see what number it was for the thing as it's blurry on all my devices
cup flipping over, you need to make sure you set the bowl rotate left and right by clicking on the direction and selecting the middle button or u can do it in the code using movement code block. If you still don't know please watch this video.
czcams.com/video/tbfkIXjc6CM/video.html
thanks a bunch lil bro, i needed to make a scratch project for a course hahaha, and kind of roughly reversed engineered yours for a different game because its a lot faster than learning the program entirely from scratch (pun not intended) as i have some programming background.
Glad I could help!
im making a game that includes letters how can i let the player move the letters freely? in this game they need to put the letters in the proper alphabetical order so how can i make them be able to move the letters?
like having a bucket, and you have letter on top, and player need to drag the letters into a bucket or something? All sprites in sprite default is draggable, so player should be able to drag them around. Then you have a when "Green Flag" is click and use a forever then use an "if" statement to check if the sprite touch one and another then u can make the sprite hide or whatever you want. If not move it back into the same initial position where u have put the letter before. You will need a list to keep track of all your letters' x and y positions.
hi, I'm making a game in which is player need to catch a different moon and will have the same score if the player catches it. Do I need to make many sprites (moon) or just one?
Just put the different costumes in one sprite. You can also change the look of the costume.
@Bilaal Isa same
Thank you it helped with computer science class
cool glad to hear that.
Thanks so much, everyone like my game!
cool, I am glad u like it, please find more tutorial on our channel.
my bowl gets flipped upside down when i press the arrow keys and, my bowl does not move when i press the arrow keys and the bowl does not go all the way down
You have to make the bowl sprite rotate left and right only not all around. Click on direction on the sprite then select the middle button. Please watch our intro to scratch tutorial part 2 it is the 2nd video we uploaded to our channel.
Thx alot
It helped me in my computer exam
i couldnt make it !!!! it was amazing but the apple wouldnt go up whenever it touches the ground or bowl and also the bowl moves upside down whenever i pressed left, the direction was 90 only but still it wouldnt!! please help me out!
for the upside down issue watch this video at 5 min 10 sec. Also for this Apple Catch game, I forgot to add "show" after the "Green Flag" is click on the Apple Sprite, so you have to add that if you want to play multiple times. Anyway if you have more questions look at the share project, there is a link in the video description above.
czcams.com/video/tbfkIXjc6CM/video.html
thank you so much its great to use it
I'm glad you like it
For me there is no wind ot button what should i do plz can you help me
do u mean you don't have "You Win", u just make one create a new sprite and put the text inside. Also on the apple sprite add "Show" after Green Flag is click, we have a small error in this game.
When it was "if the score is greater than 50 or equal" it shows You Win! on the screen but on my game it just continues and it doesnt show the You Win screen?
Make sure you have broadcast you win, also in your "you win" sprite you need to listen for that message using "when I receive you win". You can check out my share project. scratch.mit.edu/projects/434906863/
@@KidsCodingPlayground Nevermind, I fixed it right as I posted the comment
4:48 just a little hint: to make this script have 1 blocks instead of 2, instead of two operators add 'if [score] > [the number minus 1]'.
it is just more easy to understand logically instead of putting greater than 49, in this case will be fine, but other case you might need to use or condition.
Bro Pls Help Why Its Not Starting When I Push Flag? I Can Only Move Bowl And I do not did any mistakes
Check the pinned comment. I made a mistake
YOU DESERVE A+
ha ha thanks!
Do you know what I should do if I've set it so it gives points when it touches the boul but won't I've gone over and double checked and I still don't see what's happening it will work when I set it to anything else but not the boul? Otherwise, this helped a lot!!
Yeah, you have to set it to the bowl or else you will not get points. You can check out our shared project in the video description.
when the apple touches the bowl instead of the score going up by 1 to 10 it goes up by the 30/40 and even 50. Please help me. :)
3:28 - watch this part. Did u put the chomp sound before the score change or after the score change. Because you need a little delay of playing the sound that way it wouldn't register as hitting the bowl more than once. Or u can put a wait 0.5 second before setting change score by random 1 to 10. Check my share project in video description and compare the code.
I did everything right and it wont work after frist time playing bananas are infisible and the bowl wont move how its supposed to ir can only move a little bit
Make sure u have show under the green flag click for your banana. I have 1 small mistake on this video, since we r using hide u need ro show again. If u have more questions check out my shared project in the video description above.
idk why but i dont see the apple and the bowl when i go left it bees upsidedown i trust that it worked for you but it didnt for me
click on my share project link in the video description above, check out what code you are missing, just look into each of the sprite. Make sure you have "show" block under when green flag is clicked.
Thank you, this is a great project and works perfectly, good job!
Glad it helped!
@Bilaal Isa no u
@Bilaal Isa shut up he is atleast utilizing his time not a fortnite addict like you
hey there,I can't save a project on scratch why it doesnt work.It saving but can't open it.I have also scratch 1.4 .please tell me.
Are you using Scratch offline?
No sister I have network....
I have Scratch 3,1.4
Is that the problem...scratch 1.4
thanks bro I was about to fail my digi tech
When my score hits 50, it wont show the win sign! Plz help me out!
4:35 - watch the video at this timestamp make sure you got the correct operator to check. > or =. If you have more trouble look at the video description, I have my share project there you can take a look at it and compare the code for each of the sprites to see what you have missed.
Thank you! This actually helped me. And I just want to ask. How do you get the chump sound? Mine is only Space Ripple. Anyways Thanks for helping!!
No problem. The chomp sound is inside the sound library
@@KidsCodingPlayground Oh okay ty!
And I have a problem with my game. Whenever I press the left arrow key, my bowl turns upside down. May I know why?
@@stantxtorflop1762 look at the video closely u have to change the direction it is on the bottom right of the picture below "Y"
My scratch programming league!!!!
chomp sound not working i did exaclty also its not catching apple and key pressed button work ew sec then even i pressed it dinest work
take a look at my share project, link it the video description above to see what you missed.
Thanks a lot for the lesson what is the name of the application you were using and guys please let me know the other appropriate apps for this thanks
we are just using scratch online version to make this game. You can go to scratch.mit.edu/ to sign up for a free account
love your videos
Thanks for your support
It helped me in my project
np please let you friends know about our channel
This is amazing! Thank you 😊 but there is a slight problem you will need to put “show” under if green flag clicked so you can play it many times! Other than that it’s all good!
Thanks for the tip! yeah I know I mess that up using hide and forgot to put "show", I have corrected that mistake, but recording was already done and posted.
Bro your comment really helped me I was getting worried 😂😂
@@M.Abdur.Rahman-dh6dk Thats great! Hope you have it figured out.
when my apple touches bowl nothing happens it just goes right through
3:15 - watch the video again at this part, there is if condition to check if it touch bowl, so make sure you have that else it will not work.
when i tried it my apple was not coming from up again can u help in that..??
Check out our shared project in the description of the video. You can compare the code with our shared project.
@@KidsCodingPlayground thank you
@@DevaaviVlogsENJOY_WATCHING no problem
thank u for making me past my exam
It's my pleasure thanks for checking us out.
how do i move the bowl
edit: now i know how to
and also thx i really needed this!
ok np
Is it still the same if i used other fruits accept apples?, your tutorials are very easy, im so glad you help people who need it.
yeah u can do that
When i move to the left side the bowl turn upside down
7:38 - u need to watch this part of the video again, make sure you select the bowl to rotate left and right, the middle button on the direction.
Ok
@@jagdipsingh818 I think it's because you didn't set the angle to 90 just above the bowl sprite
wait I tried it (it's really good) but the bowl still goes upside down when I move it left even though I put it to 90
I found out! In the code for the bowl, where it says about the right and left key pressed, you're also supposed to keep it 90 for the left key, not -90!
it really helped
tyvm
fire intro guys
amazing thx !!!!!!!!!!!!!!!!!! 😋
I'm glad you like it
hi but when i started the game it just take away the apple
I made a small mistake on the project, click "SHOW" block under the "When Green Flag is clicked" on the Apple Sprite. If you have more question click on my share project link in the Video Description above.
Thank you so much for this tutorial.
But I dont know how to save the game can u pls tell me.
If u do it online then it will automatically save it. If u do it with offline editor then u can save it to your computer, but clicking on file menu bar
@@KidsCodingPlayground Thank you so much
be logged in and wait until its auto-saved (or save it manually)
there were 2 mistakes but i fixed them but anyway this video helped me a lott
Glad you were able to fix it
My apple won’t drop I have checked over the code everything is correct and my apple won’t drop
Be sure to add show block after the when green flag is click on the apple sprite. When we made the video we hide the apple when player wins so u need to make it show again when u play again. Check the link in the video description to see the code in the share project
Good This is a very nice Video 👌👌
Thank you so much 😀
Thank you so much man! Lifesaver!! Have a great day.
Thanks, you too!
I dont know what is the problem but when i click play the bowl goes down and the apple disappears.........................................
There is one small bug in this game, you need to add "SHOW" after the "Green Flag" on the Apple Sprite. Check our share project in the video description above.
Something is wrong
it does nothing when i press the green flag
make sure you have show after green flag is click on the "apple" sprite doing the recording I made 1 small mistake, check out the video description there is a link to my share project you can see the code there.
This is a nice video
thanks!
It would be better of u would also like change the speed little fast if we get 1 point
my apple suddenly disappeared but the coding is still there, where did it go?
please add "show" after when green flag is click that will fix your problem, we have a small bug while making this video. Please see my share project in the video description above to correct it.
Put the "Show" after green flag is click on the "Apple" sprite.
How to speed up the aples when the score is up to 100? Please give a code 🙏
You can have a variable called "speed", so in the beginning you can set the variable "speed" to -7, and instead of "change y by -7", change the code to "change y by speed" then inside the forever loop check if the "score > 100" set the speed variable to -10, so that way after score pass 100 it will be faster.
@@KidsCodingPlayground thank you i will try to add this code
my bowl is not move:( how to fix it?
6:20 - watch the video at this part, this is where we make the bowl move left and right.
see my share project. scratch.mit.edu/projects/434906863/
I'm going to make this 1 hour later in an school exam ! Wich me luck !
good luck hope u got a good grade on your project.
i just did the pong game tuitorial but ball did not fall
make sure you are changing "y" by some negative number. If you are working on pong, why you are commenting on Apple Catcher tutorial.
Thanks 😊
Welcome 😊
My bowl flips when I click left arrow
make sure you set the bowl not to rotate.
Watch this video and see how the dog is flipped over, and how we fix it. czcams.com/video/tbfkIXjc6CM/video.html
My score isn't going up when I catch the apples?
3:50 - watch this part of the tutorial where you need to change score by some number. Also you can keep the hiding the apple when you win don't need to do that, because if you do you need to add show in the beginning when green flag click, check my share project if you are stuck, it is in the video description above.
@@KidsCodingPlayground I did exactly what the video did and checked your game but it still doesn't work?
did you compare each of the code in the sprite, if you still have problem you can share your project and post a link in this video.
thx man
you are welcome
Thanks i get 90% thx my boy
No problem
@sanchin mode4086 is work why you says not work?
wow you are amazing
Thank you so much 😀
Thx ❤️
No problem
yay
cool ty
you safe my life
You are welcome
The apple isnt moving its just staying in the sky i have the same code :(
Make sure u have change y and not set y. Take a look at my shared project link in the video description above
If u want to play game again, dont forget to add button "show" to apple scenary, after set first y possition :D
Yeah sorry about that, you are right you need add the show again if you are hiding it. Actually if you look at our share project our code is a bit different, we have removed the forever loop to check score, and win to hide the apple. We add the score check inside the first forever loop. Thank you for pointing out the issue on the video.
@@KidsCodingPlayground Ye, I also made code little different 😅 I used another characters and add 3 lifes, next character - bomb and final text "You lose", if you die by bombs.
Cool nice, yeah you can make the game any way you like. You can check out my newest video where we make Piano Tiles game with Apples. czcams.com/video/6wYLDXCs5Qg/video.html
@@ferdamys could you please share the tutorial how you made the different code? thanks
@@aris9993 what specifically do u want to know?
thx so much
Glad it helped
Why mine only works once
I replied to your question already add show block after green flag is click on Apple Sprite.
thank you
You're welcome
I can’t move the bowl 💔😃
whym apple stuck no fall
make sure you have change y by a negative number to make things fall down. Click on my share project in the video description to check your code to see if you missed anything
why it didn't work to me
make sure you have "Show" block on the Apple "When Green Flag" is click. If you have more question click on my share project link in the video description above.
Hello Kids Coding Playground, We meet again do you remember me, I'm at the video is How to acess backpack
cool thanks for stopping by again thanks
Thank you but slide problem
I can notsee my apple while starting
make sure you have "show" under when Green Flag is clicked. Checkout our share project link to scratch in the video description.
Same, when I clicked green flag I couldn't but then I realized you should put a show block underneath the first "set y to" block for the apple.
cool if you guys have any trouble with the code, just check out our share project for the video, sometime we found the mistake of the code after the video is uploaded, so we will have to correct it in the share project.
could you make a level up ?
We are working on a new tutorial right call Apple Dash. It is a more adv version of an Apple Catching game.
Game Demo - czcams.com/video/zuzcU1aXY1s/video.html
Tutorial Part 1 - czcams.com/video/C9FlhaD1Q_s/video.html
Thanks so much , this really helped!!
Glad it helped!
i just don,t under stand that why in left arrow key it is turning -90 instead of just 90
its nice
Thanks
great
thanks
My motions are not coming
not sure what you mean motions are not coming can you please take a look at my share project link in the video description above to see what code you missed.