Space Shooter 2 - Enemy Collisions
ฝัง
- เผยแพร่เมื่อ 29 มิ.ย. 2024
- How to build a fast paced space shooter based on the classic arcade game Asteroids, but with Lemons! In this second part of this Scratch tutorial we cover enemy Lemon spawning and movement, and delve into the slightly complex world of clone to clone collisions. We also look at making the lemons split into pieces when destroyed. That leaves us with the exciting explosion flashes, screen shake and more for part 3!
Wondering why Lemons? Well, Lemons were the first fruit to have achieved interstellar capability and are thus attempting to take over the universe. To tackle such a scenario we obviously need to fight back with rapid fire lemon busting lasers!
🚀 Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at 👉 griffpatch.academy 👈
😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
🐱 Scratch Starter Project Game Assets
scratch.mit.edu/projects/5488...
👀 Simple Space Shooter
Part 1 - • Code a Fun Space Shoot...
Part 2 - • Space Shooter 2 - Enem...
Part 3 - • Space Shooter 3 - Came...
Bonus - Scores - • Awesome Number Counter...
Bonus - Health Bars - • AMAZING HEALTH BARS in...
Part 4 - • Easy Scratch Space Sho...
❤️ Enhanced Scratch Developer Tools
www.griffpatch.co.uk/
📹 The Awesome Video Editing software I use (Camtasia)
techsmith.z6rjha.net/5bajbo
-------------Video Chapters-------------
0:00 Intro
00:43 Game Music & Sounds
02:34 Drawing a Lemon
03:57 Coding a Lemon
08:47 Wrap around lemons
11:20 Spinning Lemons
14:29 Lemon Laser Laser Lemon
16:55 Touching Race Conditions
19:29 Splitting the Lemon
22:18 Fix Collisions II
23:49 Episode 3
24:14 Members Projects
25:23 Outro
Part 3 - th-cam.com/video/RKdXM3x-jEo/w-d-xo.html
too sloww
@@mrbeegamer7575 he he... I need everyone to become members of my channel to support me then to speed up production!
@@griffpatch but i cant!!!!
@@griffpatch no free no fair
i can't wait!
What I love about your tutorials is that they don't need to be used for one specific game. For example, I'm using some of the scripts in this video to help me make a Rougelike zombie game, and the code is very easy to transfer. Keep up the good work!
you know my space shooter is in production and will be released in scratch tomorrow at 6:30 pm.
Search Prime_Panda Lemoniod invasion
One thing we learned from all this:
griffpatch likes lemons.
its the same lemons from the non euclidan world
it wasn't lemon shooter without lemons.
@@walterbeckett9461 yup
They are strangely compelling in computer games right :)
lemon!
*eats*
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHHHH
I love how he doesn't just tell us what to do, he explains it to us so we can understand what he is doing.
true
But sometimes i dont understand like in last episode i didnt understand the make movement if u do know how it works do explain it to me thanks
Regular scratches: do a create a clone of myself in a forever loop
Griffpatch: Lets make a new custom block with an input value of...
Chad meme yusyus
[ E X ]
Everyone gets excited when a new griffpach tutorial, right?! I mean, who wouldn't? It's GRIFFPATCH!!!
I agree
So true
Yep
Welcome to the reality
@supernom agreed
Ngl, this channel is a treasure trove for beginner to intermediate scratchers. Not only do you give us ideas, you also point out hidden mechanics in scratch that makes coding easier, and also practical applications for those and workarounds to problems encountered. Definitely a well earned sub.
Well Said
I love watching your videos not because I actually follow your tutorial, but because of all the little tips & tricks that are actually so usefull
Things like spinning moving object or detecting 2 sprites collisions are things I've always been struglling with and sometimes never find a viable solution
And more generally it helps understanding how Scratch works
Also your editing is feeling better, makes the video more smooth and pleasant to watch
“I can almost feel those lemons charging up their juice powered space drives!” -griffpatch
I liked when you said,"welcome to the world of mathematics of move block."
lol😆me 2
Hey, Griffpatch! Thank you so much for making this tutorial! I’m not making a shooter game, tho I’m utilizing your BIG costume technique and did the exact opposite! I realized that the costumes I created couldn’t get any bigger in size, so I made the smallest square I could make and set its size to 300%. After that I could easily change the costume to any other way larger costume!
Yes, that's cool right
Thank you for explaining the collisions effectively! I bet I would not have known soon if the bug occurs! Nice tutorials, looking forward to your further tutorials.
Yet another amazing video! I love these tutorials, especially when I learn new things!
Cant wait for part 3. I really wish I could become a member! But I just cant afford it currently.
I hope you make a way to have all the lemons more optimized and such, as the lemons are making high clone count and the little ones are pretty hard to even shoot. But I believe you'll fix that, you're Griffpatch!
Anyway, thank you for the great tutorial!
😙😙😙
Please kindly subscribe and share!
To subscribe:th-cam.com/channels/EwrJbpY5sDzt6iN7834BcA.html
The info here is monumentally useful. I and my future projects thank you.
The part where you recreated the "move (Value) steps" block reminded me of that time I accidentally recreated the "Glide towards" block. It gives you more control over the code
how do you accidentally remake a block in scratch
@@Red_impostorYT Basically I ended up with a block that manually calculated distance and cut up that distance into even-sized increments.
I was trying to make a different version of this algorithm that makes your sprite move slower/take smaller steps the closer it got to its target. Only I didn't want the steps to get smaller.
So I made a block that made the sprite move in equal increments the whole way through and I realized that I just did the math (or something like the math) behind the Glide Towards block
@@yannismorris4772 cool
Thank you very much for making informative content like this, I’ve been using scratch since 2016 and I’m still learning new ways to tackle problems now!
i was in a discord server and most people where saying how great you are griffpatch, now honestly i had never seen your content and now i'm hooked on it. Keep up the great work!
Thanks so much for the tutorial! I'm loving this series. I find it rather amusing to replace the lemon sprites with the faces of politicians...
lol
lol
Bruh
Whooooooo AMAZING!!! YOU ARE REALLY THE BEST SCRATCHER…….
Yes!!!
Yep
Ur right
Yes he is
why u learning scratch? xd
griffpatch is the type of teacher we all wished we had
I love the creative ways you tackle problems!
This tutorial series has been proven to be very informative! I quite like it! I also never knew that you can use the ALT keys when making art on Scratch, lol. (Despite me being on the site for 3 Years)
I always how to include any little tips I can :)
Just saying: If I could sub to you 5 billion times, I would. Fantastic channel and easy-to-understand even for beginner programmers. Thanks for all the help! It means a lot 👍🏻
Wait a minute, you can! You can just make 5 BILLION ACCOUNTS to do it! But it will take a very long time. I also think griffpatch is a cool dude.
@@potatoes_are_scrumptious in fact, you would die before you even made all 5 billion accounts
I love your tutorials, they help me learn new stuff I never thought was possible!
I love how you explain your ideas in an easily understandable way, even my 6 year old brother could understand. Loved the video!!!
as an 8 year old kids also can understand
The part at 12:24 might actually be really helpful for a zombie shooter project I was making! I was trying to add scrolling to the game, but I was unable to figure out how to keep the zombies moving toward the player while storing their position in an x and y variable.
Edit: It works! I guess I'll have to finish making the scrolling then... lol
episode 3: how to make a combustable lemon that burns your house down.
make it explode more lemons!
XD 😂🤣
That’s what I was thinking the whole time XD
this whole game is after cave johnson invented combustible lemons and the whole earth exploded, and the lemons got into space and now are heading towards you and trying to kill you
oh she is a gem!
I always watch the full video even though I've heard of his channel membership before. I just live your voice, griffpatch!
I loved this project it was a blast! Literally.
It's a good day when griffpatch uploads
Try making the biggest lemons shoot mini-lemons! This will add a bit of a challenge, as it’s quite easy to shoot lemons. Also try adding a “points” counter that shows how many lemons you’ve shot. Try making it add ~10 per big lemon, ~5 per medium lemon, and 1 per small lemon. Also it would be nice to remove 1-3 points per lemon that get away. Either way, very cool video as always!
you will be happy when you see episode 3
such a great tutorial series!! keep it up!
Im really excited to follow this tutorial when I get back from school :D
24:34 and 24:59 congrats razkanaz and judpomme!! i'll get some inspiration!!
"Lemon!"
* eating noises, followed by a scream in dismay *
Sonic eats a lemon and dies reference.
your games are always a 10/10 star rating amazing!!!
thank you so much! These tutorials are really helping me
I love lemons
1:53 griffpatch: i can almost feel those lemon charging up their juice powered space drives
Me: so they are robot lemons now?
Nope, they are just very clever.
@@griffpatch I love your vids griffpatch! The music will definitely be intense!
@@griffpatch clemon
@@griffpatch when a couple of lemons are more technologically advanced than the entire human race: *nervous sweating*
Thanks a lot! You explained everything very well. This was amazing!!!
You're very welcome!
Hello, griffpatch!
You're close to 50K subs, so I'm here to say congratulations!
(Big fan of your works btw, also im subbed rn)
not close he's 184K subs now
@@pentaguin5s this comment was from a year ago, but i see where you might be coming from
Excellent tutorial! I showed this to my son and he is now coding it. For show and tell at school, he used you as his role model. Thank you for being an inspiration for my son.
I have been waiting for this tutorial since the first episode came out! Griffpatch is the best coder on scratch I have ever seen. He really is great at this.
I know right
i like make more likes but i can't
Nice Video! I love Your Vids!
yey the part two is out i was waiting for this
cant wait for episode 3: *coding the entire universe*
I think he can do it cause he's so good, I mean he can do it in the future😅
Griffpatch: So we start up by adding a forever loop
Video: Ends
Cant wait for part 4: *coding self aware ai*
It's cam shake and fx
@@junebugrobotics yea
WOAH! A 26 minute video! This is gold! ⭐️
Thanks so much! It's gonna be the same thing, but with a twist..
its like a fighter-jet shooter game where you are a fighter-jet and you shoot down your enemies,
very classic.
Griffpatch, in your Scratch Addons for chrome, add block switching also, it helps you a lot to replace blocks in the most similar blocks like 26:05 you can then right-click and select set y after this addon is added
I made watermelons instead and made them become slices when shot
As a wise man (griffpatch) once said:
"L e m o n"
Looking forward to this!
superb,....you are doing great job by helping lots of learners with the world of coding...keep it up
25:49 This guy hates being rickrolled so he kills em AND RICKROLLS US
Dun dun duuuuun dun dun duuuuun dun dun dun dun
Hello Griffpatch! I know that this doesn't have anything related to this tutorial, but i have a bug in the tile scrolling game. When i exit the editor to playtest my level, a coin fountain sprays at my mouse pointer, making my coins go up rapidly. Do you know how to fix this?
Hmm... Ok, I don't get that but maybe there's something we can do.
What part you on
love your videos its so easy to follow and you get a great result. :)
BEST TUTORIAL EVER YOU ACTUALLY SHOW ME WHERE AND WHAT TO DO
Now my project look more better than the last one, thank you so much!
This is the best tutorial I ever watched, other video is really amazing tô! Thank you for this tutorial, I wish I could make thí video the best video ever!
i really love your videos and er very easy to keep track of. keep on scratching!!!!!
Your videos are amazing
I will surely try this in scratch
I tried the program and it sounds REALLY GOOD on "Never Be Alone". Good job
making lemons are soo easy thank u griffpatch ! first I thought it is difficult and is in picture library.
This reminds me of the "sonic eats a lemon and dies" meme... Great vid!
Its Amazing How He Can Make Such Unbelievable games Using an Engine Like Scratch!!! Keep Up The Good work Griffpatch!
nice! great as always!
Awesome job dude!
thank you my man I've been trying to make this and you helped me ty griffpatch
Eyyyyy!! The second part is here!
Thanks so much @griffpatch i never knew custom blocks could have a function without an imput
dude thanks a lot for that race conditions, i had no idea why the enemies wouldnt just dissappear
thank you Griffpatch your drawing is so cool I have already follow your studio .
thanks so much for the video, I just came from the beach, good lemony summer! Well... ON TO CODE!
Thanks griffpatch for inculding my project.I liked your project too much :)
i used this for a remake, Thanks For Posting This!
I just love how you make these games it's like I always use your vids🤩
18:43 the powerful feeling when you solve the problem before griffpatch explains it
on god
Amazing!!
Thanks for the tutorial! I really like this idea and the way you edit your videos. Keep it up!
congrats to 50k subscribers and nice video
Fun fact: like racing the beam on the Atari at 18:06 due of the limitations of the Console the programmers have to time everything to avoid garbage our bugs on screen.
griffpatch, you're the best, keep it up, champ
thank's This is so easy to understand!
Griffpatch is an amazing scratcher!!!
Wow! So awsome!
Your so cool manhh.. Thanls a lot. I was working on an other project and i faced the clone hitting peoblem. I thought it was an bug and I i leaved that there but, Today when I was watching ur video I found my fault in that. Thanks a lot Bro🙌🏻
I love the rick astly shooter!
Never gonna give you up...!
Working on my own project thanks to you
I love this guys videos
It was very useful to build my first ever game in scratch!
so thanks a lot.
My pleasure
thank you.. it's works when i try this tutorial
@griffpatch this is my first time coding, ive so far been loving it. The amount of work and effort you put into this, is just mindblowing! I also have a question, when I was working on the Lemons, it wasn't spawning even though I had done everything right, do you maybe have a solution to this problem if you do, let me know, thanks!
Griffpatch, this is AMAZING!!!!!!
I was waiting soo eagerly for part 2!!!
Thanks anyway!🤗🤗
50K Subs!!! Congrats!!!
Yay thank you!
i just love how he makes mistakes in his code then fixes it later and explains how it made a problem to show us how to fix it later on in our coding journey.
Wow I love this project
tomorrow's hopefully part 3... I'VE BEEN WAITING SO LONG
Love your vids bruh :), I even subscribed and liked,
Man I feel like griff is reviving the scratch community
Griffpatch is really awesome because: He makes awesome projects, he makes awesome tutorials, and the tutorials are amazing because he explains what the scripts do.
I know!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!