Scratch Tutorial : Snake Game
ฝัง
- เผยแพร่เมื่อ 3 ต.ค. 2024
- I Hope this tutorial is helpful to you.
Keep following this channel for such more Tutorials.
You can also Follow me on Instagram for more info.
/ coderstudio.19
Software - Scratch Online
scratch.mit.ed...
You can also Download Scratch Software
scratch.mit.ed...
Share Subscribe & Support!
-------------------------------------------------------------------------
So helpful and awesome game... Please keep sharing . And i have followed you on TH-cam.. 😊
Thanks ♥ keep following this channel for more tutorial videos.
wow, what a nice backdrop! I love it!
Thanks. 🙏 keep following this channel for more tutorial videos.
I made this game
This game was superb
Thanks! Keep following this channel for more tutorials.😇
Im so like this
Thanks.
Please subscribe to my channel for more tutorial videos.
IT awsome! i have a project
Thanks
Helpful
Glad to hear that,Thanks
I like snake games this is amazing
Thanks 🙏 Keep following this channel for more tutorial videos
Cool one!
Thanks ♥ keep following this channel for more tutorial
U helped me very much thanks
You're most welcome keep following this channel for more tutorial videos.♥️
Your tutorial was very helpful...and I think my Scratch app is glitching
Pls retry it !
it helped me sm thanks
Glad to hear!
Good
Thanks 🌈
Wonderful game😄
Thanks ♥️ keep following this channel for more tutorial videos.
@@CodersStudio19 true bro🧛
awesomest game Ive ever seen!!!
Thanks 😇
Wow!!!!! The tutorial is awesome
Thanks 😀 you can subscribe to this channel for more tutorials.
very helful just one qeustion can you have a different fruit than the strawberry
Yes any fruit you can use.
And keep following this channel for more tutorial videos.
SO HELPFUL!!!
Thanks! Keep following this channel for such more Tutorials!
This helped me out a ton, but I have a question... how do I make it so the snake gets a game over if it crashes into its body?
Same bro
snake sprite:
Green Flag clicked {
forever {
set var x to x pos
set var y to y pos
set var dit to direction
}
}
Green Flag clicked {
forever {
if Key.up_arrow clicked {
rotate 0
}
if Key.down_arrow clicked {
rotate 180
}
if Key.left_arrow clicked {
rotate -90
}
if Key.right_arrow clicked {
rotate 90
}
}
}
Green Flag clicked {
forever {
create clone myself
move 10 steps
wait 0.1
}
}
Clone {
forever {
if touching HitBox {
sell ImDeath💀
}
}
}
When I get ImDeath💀 {
stop all
}
HitBox sprite:
Green Flag clicked {
forever {
rotate to Var:dir
if direction=0 {
set x and y to: Var:x Var:y+20
}
if direction=90 {
set x and y to: Var:x+20 Var:y
}
if direction=180 {
set x and y to: Var:x Var:y-20
}
if direction=-90 {
set x and y to: Var:x-20 Var:y
}
}
}
you get im really good 😎😎😎
ahh sorry fix bug , add this to snake sprite:
Clone {
wait 1 second
delete clone
}
@@ItsaMeReeheehee I wrote here to you children, questions?
when i try to get my snake up wards then they show game over, and even i have not touched the edge then also it is comming game over.!!!
🤔
Please check the code again " When the up key is pressed - Change Y by 10 "
Its a really good tutorial but how do I remove snakes face when creating the clone ?
Its glad to hear.
You can put the hide block to hide the original snake face.
@@CodersStudio19 thank u
nice
Thanks ♥️ keep following !!
Wow........😊😊😊
Thanks 🌈
do we have to coppy your totorial or we can coppy your totorial and add some thing els
You don't have to copy it. if you want to add something else you can.
I created this but when the snake touches the edge it will do nothing the game over wouldn't pop up
In snake spirit, you have to make a code "if touching edge" and broadcast the message game over!
Make a new spirit of game over, in that make a code when "green flag" is clicked hide. And then take a block when I received the game over make that spirit show.
Bug: when moving right and pressing left arrow. you move left. same for when moving left and pressing right arrow. you move right.
btw thx! Ill sub
Wow...
Thanks ♥ Keep following this channel for more tutorial videos.
@@CodersStudio19 sure
How would this work on iPad?
On web browser you can search for SCRATCH Software ( link is in description box) and then you can work on it.
@@CodersStudio19 no like how would I move the snake on an iPad? There are no up or down key?
@@TochedGrass3742 oh yes! you can make arrows left right up and down as a spirite and then you can easy work with it
thx alot it helped me alot!!!
You're welcome😇
i made this game
thanks
You're most welcome 🌈❤️ Keep following this channel for more amazing tutorial videos.
❤️❤️👍👍
Keep following this channel for more tutorial videos 😊
😍😍
♥️
make geomettry dash
Wonderful game buy when I want to change game it isn't turning immediately it is jumping a few steps then turning
Please helo
Good to hear you liked it! If it's jumping you can move steps.
Software version
It's the MIT Scratch 2.0 version.
bro mine is not working and every coding is fine but is not working
Maybe there is a bug you can retry it and make it again
Hi, how can I make the coin to a random position? Thank you!
First, take the green flag block, then take go to a random position block. if you want that coin to move to a random position again n again then, under that random position take forever block and inside that put go to random position block and wait for 5 seconds block.
It's to bllure😅
can you give the link please?
What link?
@@CodersStudio19 Probably of the Scratch Website or the game link so he/she can play it..
ular no wow wow exe.
Is this a 3.0?
What?
@@CodersStudio19 I Meant do you like need to download Scratch 3.0 to make this game because i tried and didnt work like yours
@@varnikabhola2131 you can work with scratch 2.0 also or you can use online version of scratch.
The Snake is leaving space and going after the score is above 100!!
So you can set the clone value 0.3 to 0.2
And then change the clone by 0.1
WOW!!!! LOVE IT!😍
Thanks!🌻 Keep following this channel for more tutorial videos.
Level?
What ?
aku biasa galadis
Hello
Hey
something is wrong and I don't know what my snake doesn't cling it's clones to itself but makes new different ones and scatters them around and I can't find the problem
Sometimes it happens.do one thing just delete the character and do it again.
nice
Thanks 😊