Scratch 3.0 Tutorial: How to Make a Tower Defense Game (Part 3)
ฝัง
- เผยแพร่เมื่อ 16 พ.ค. 2024
- In this video, Scratch 3.0 Tutorial: How to Make a Tower Defense Game (Part 3), I make the towers aim and shoot at enemies within a range and make a simple enemy death animation.
Subscribe for more tutorials on how to make games in Scratch!
How to Make a Tower Defense Game (Part 1):
• Scratch 3.0 Tutorial: ...
How to Make a Tower Defense Game (Part 2):
• Scratch 3.0 Tutorial: ...
My Tower Defense Game project on Scratch:
scratch.mit.edu/projects/4112...
If you need help with your own Tower Defense game, ask here:
scratch.mit.edu/studios/5241009/
I recently published a new mobile game, Flingy Fruit (available on iPhone and Android)! Check this video out if you want to see how I made the game:
• How I Made My (Second)...
You can also check out this video for the other mobile game I made, The Last Chicken On Earth:
• Mobile Game Announcement!
Outro music (I only used part of it): bensound.com
For business inquiries: contact@fuelvin.com - แนวปฏิบัติและการใช้ชีวิต
thank you for the tutorials
i kinda was angry cuz i accidently deleted the huge part after finishing it and i was obligated to redo :(
needs a like
BTW you can also press CTRL + Z to undo.
If you delete scripts: CTRL + Z to undo
If you delete sprites or costumes: Edit > Restore (sprite/costume) to undo
ucan right click and click undo
@@scratchsuperpower386 Or CTRL + Z
ha you are lucky i lost a whole project because i clicked the x when i want to get out of the sprite select
I started programming in Scratch as a noob and after your videos I became more professional, thank you❤
i was a bit confused for a second cause the turrets would never shoot the first enemy that spawned. eventually i figured out i didn't place the "change clone# by 1" above the "create clone of myself" in the enemy code.
these tutorials are easy to follow along with and the fact that people are using this three years later shows how great this series is. so thanks for making these.
Roses are red
Violets are blue
This guy is a legend
Agree with me too
Does not rhyme
Blue and Too actually rhyme.
@@luckyramirez8954 same pronounciation is not a rhyme
@@dlma03 Blue and You has the same pronounciation so does blue and too it does rhyme
Dictionary: correspondence of sound between words or the endings of words, especially when these are used at the ends of lines of poetry.
Okay
yes it does
and agreed he is a legend
I just started scratch so this is SUPER helpful for making good quality games. TY SOOOO MUCH FOR THESE TUTORIALS
relatable
You have made something so complicated and made it really easy. Thanks so much for the tutorial, it helped a lot.
My aiming doesn’t work!
Same?
same
SAME
Mine does
@@GloveStanders cool in that case im gonna recode everything
Dude is big brain. Awesome series bro. I'm a scratch beginner and it still feels so easy for me to make this advanced stuff
if you want to add a breaking or something animation for death, just make the costume(s) for it and then put a "switch to (costume)" block, then a "wait (0.2) seconds" block before running the code to make them die, the towers already take 0.8 to reload so it wont slow them down at all
thanks
Thx
Unless you have multiple turrets
Part 2: "You can't defeat me!"
Part 1: "I know, but he can.
*INTENSE PART 3 NOISES*
LOL
lmao
so true
OH I GET IT
FR
Thank you for this video. It's very respectful to teach to do something, and you managed teach are hard, very easily. TY and love your content. I can't want for more videos like this.
Thanks so much for the series. I was making a TD game from this other tutorial and it was good but way to many bugs to fix and he took way to long. The series was very long and I got frustrated on some of the episodes. But your tutorials are easy to follow and you explain everything quick and easy.
i love this series @warfame keep it up. it so inspirering to see you make a tower defence game and us being able to make it ourselves and also learn from it because some of the people watching dont know that much about how to code but then you show them ways to do things they didnt know how to do before. keep up the good work. (also i know im bad at english)
I know
I followed all of the tutorials and can't wait for more!! I even added a dual fire turret!
Im currently in a competition of the best coding project in my school district so this will be my base. ill make sure to leave credit so, Thank you so much!
thanks you for helping me with this project and also my math exams as I now can remember the formula of distance easier
I am starting on my dream game☺
Same here
Same here
@DashBoyEgon Not me, i’ve made mine already.
Cool, um.. Can someone help me make a dream game too cause I'm a noob but nobody laugh OK I'm still new to scratch please anyone anyone please? Oh and can you reply please you now why because I need help making a dream game OK by!
@DashBoyEgon Hey my second name is faith hm!
ican finally make my dream A TOWER DEFENSE COUNTRYBALL GAME
STOP THIS IS ILLEGAL!
You Cant be this talented
Ye man but I looked at his scratch I'd and his earliest scratch project was around 6-7 years ago that's why he so talented
Great video Tysm
Hope everyone enjoyed this video with the turret aiming and shooting! I'll be making slight improvements to these features as this series goes on. What do you think about the turrets so far?
Also, do you want to make stunning, front-page worthy Scratch games and receive 1-on-1 live guidance from me? Sign up for my first-ever 2023 SUMMER SCRATCH BOOTCAMP! Spots are limited. www.fuelvin-academy.com/
Awesome dude
you are the BEST tutorial maker on YT Scratch!
Message for warfame: if you can make levels and upgrades for the turrets and make rounds oh and make it so that the upgrades come each times your level gets up ( level up ) and everytime they level up to level up gets harder to achieve each level.
@@Inhale_8632 Awesome idea
@@peacefuldeityspath thanks man!
15:45 the exact view radius should be 1/2 of the Radius Sprite's width (this is 1/2 of the diameter, which gives the radius).
You can find the width in the costumes tab of the Radius Sprite.
thank you!
For a Second I Thought I Missed Something I Was About To Restart Until I Found This Comment THANK YOU SO MUCH
i dont know what r talking about but i think it can help can someone xplain it to me
i dont see it where exactly is it?
it worked for me before so
yes, ik, why am i watching this in 2022, it was bc i'm super bored and i found this as a fun thing to do. quick question though, my turrets can only shoot the enemy in directions "90" and "-90", it doesn't seem to follow the enemy around as shwon in your video. How were you able to do that, if so please explain :)
i dont see your videos 2 months but in scratch:
Im still worthy!!
awesome tutorials :)
from morrocco
I did that very hard trigonometry part and when i place my turret down, the turret doesnt aim at the enemies.
Sameee
@@sgmyanfeiry9589 IKR
also i lost my data :(
Same :(
Me too did any one find any solution
Hey warfare, y code is working all nicely but for some strange reason there are always 2 enemies which my turrets can’t see(random enemies like 1 and 3 or 5 and 8) I’ve tried decreasing the enemy number to 8 but 2 enemies still remains
Sometimes the enemy progress doesnt fill up properly before getting to the end, have no idea why.
Same problem here.@@notsocrapmex3286
Thank you for making this video, It really helped me. Keep up the good work!
im getting A+ with this series
Warfame: we have to use the distance formula
My brain:🤯
My brain : 😀
@@GreenSofaChair same
I only really came here cause I wanted to see his coding skill, I guess its just satisfying
I'VE BEEN LOOKING FOR THIS!
I feel like I acomplished something becasue when I first watched this video (a couple years ago) I had never even heard of trigonometry and I didnt understand any of the actual code. But now after taking my trigonometry class in school I fully understand it and can probably make cool things with it now B).
I cant get my turrets to properly track and shoot. It's like if the enemy gets behind the turret it just loses interest
The Best thing about You is that You atleast Explain you're code!
16:00 Pls help me, the turret is not aiming. it just there. can someone help me
Same
Same here if you know can you help me?
frfr same here
Im making a game about tanks and mechs and its a btd sort of game, This is the best tutorial on scratch EVER
i am a literal child and i do not understand what the heck this guy is yappin about, "atan of item targetenemy# of enemyX" i dont even know, but this guy's tutorials is SO helpful, ty so much
Lol I was like what’s wrong why aren’t the turrets turning properly so I rewatched a lot of this and went back to the previous video just to find out I was missing 1 thing… the set clone# which goes before the repeat 😅
hey so when my turret is aiming instead of following he just does a big swing around and stands still. Please help?
the same thing happened to me i just gave up
same
lol i did it right not meanin to be darude person
I really have to Thank You Warfame You are the best!
Warfame I was looking at your project when I just saw you posted the tutorial :)
Am I the only one that feels like this part was a scratch and a maths class?
nope
@@GuiDuckz no he meant that there are more people that thought of the same thing that you said
@@kamdnqnxskak boi why are you replying to my cringe goofy ahh coments from 2 years ago
@@GuiDuckz im basically rewatching this tutorial since i already finished it lol
awesome! can't wait for part 4
It’s out
everytime i try to make the turret target it basically just malfunctions. is that normal?
edit: it starts to work but it doesnt really have the most accurate direction
You should add a pond where only a pirate ship turret can go
The part that included “atan” got me bamboozled
when?
It mean Atangent,
Fuelvin:This will probably be the most complicated part of this entire series.
Me:Its big brain time
Edit:Something went wrong and i gave up ;-;
lol that just happaened to me the turret is not aiming at any of the enemys
@@Karrots. ikr!
i finished my tower defense game now tho i had 18 failed tower defense games 🥲
my turret isnt aiming
@@Karrots. mine is doing the opposite! It is aiming at them even tho there not in the range im so confused...
🥲
Awesome video! This is really helping me keep my programing up! People like you makes my day better❤❤
im stuck on 6:46. theres no enemy x and y list on my turret sprite.
edit: nvm i clicked "for this sprite" button i didnt notice
YAY ive been waiting for so long for the third one
its good then
For anyone warching this in 2023. I had problem with the turrets lagging behind. When I reduced the enemy amount to 2, I noticed they weren't lagging behind, the turrets were just refusing to aim at the furthest balloon for some reason. To fix this, you have to set Clone# in the enemy sprite to 1 when flag clicked.
but my turret wont move
What u mean by When I reduced the enemy amount to 2
@@lazarstankovic9069 I made it only spawn two clones. I already finished the game btw
@@ollib9837 can u maby help
@@ollib9837 and last thing what u mean that u only spwan 2 clones
Thank for your help
I was gonna start a tower defense game but i have no wherre to start so thank you!
Big thank you.
14:46
"Again, you might have NO IDEA what I just said, but that doesn't matter."
-Warfame
?
for me the enemy progress turns to dead then instantly snaps back resulting in the enemy not dying.
i dont know what to do
same
did you find out?
tysm warfame, this helped so much
this is very helpful man, thanks!
Question: would you ever make a game using python
ummm idk
yes
This doesn’t wanna track the furthest enemy on mine help
mine to
Please help!!
When I shoot the ballons the enemy progress says dead then continues to rise
very cool
Hey, can you help me?
So the aiming part: when i put the turret, everything seems fine untill the enemies start to dissapear the turret glitches out
I dont know whats wrong
Same the turret shoots one perfectly, then shoots the furthest possible one, then breaks
@@help3173 I don't know for the shooting of the furthest one possible part but the part where it shoots only one is a problem i've seen on a lot of comments and it didn't work for me aswell. basically what you do is the dead enemy is counted in the enemy detection so scratch says the word "dead" is greater than the first enemy. To counteract this you have to put an if block around the DistanceToEnemy so it disregards the dead enemy
I used the right code but my turret won't aim or shoot
Me too
Wat da heck there's 10 series?!?! we gotta subscribe to dis guy
It was very helpful.
Thanks Warfame
Your tutorials are amazing, but it’s hard to find your mistakes. I do not know what can be better, maybe adding time stamps can help?
lol hi me
hi me
if it laggs try deleting the wait block in turret aim and shoot.
@@cwstds4652 wdym
aaaah my turrets not aiming at all. it just stays the same, not moving or doing anything. HELP PLS!!!
This hurts my brain.
This actually gave me a headache from how much I didn't understand but still did it.
this is so helpful i maen like begginer could litterly see this video and make this game even though it has large codes its that understandable
FIRST better change that name into Godframe
its Solario btw
Idk why but I had a strange gut feeling that part 3 would be coming today. Guess I was right
I love how you use lists and math!
Can you make a video like how to make like a start screen like adding a home screen thx
He: said it's not that complicated.
Me: Silence for who that understands that
Also me: HOW!
"this video will probably be the most complicated part of this entire series"
oh no
edit: i did it
jealous.turret won’t aim properly except on turbo mode when it aims weitfly
*weirdly
update: turret now aims. still aims weirdly though
Update: took half an hour but I did it!!!!!!!!
update: clones are not destroying for some reason.
What i need to do if my tower is didn't target at Enemy?
Hey, nice tutorial! But can you maybe make bullets? Maybe you said you wouldnt do it in a video but if u did say it i forgot so.. will you do it? :D
the fact I underdstand but still cant do it ._.
I don't understand but can do it
YEA IM THE 773RD TO WATCH THIS
Ok
How the heck are you that smart with math, you are the next Einstein
I'm learning so much
what is the program that u use for recording?
This is reallly good quality! A little more practice and you'll be as good as Griffpatch in my opinion!
he already is
I love this guy
When i was making this my turret cept shooting in the range and in a cross shape from where it was on the map. plzzz help
IMPORTANT:
for those who don't know how he is right clicking to edit blocks or to change them, get the scratch addons extension: they have many features including those that he is using.
i dont have any addons but it works for me
Can you help me
I followed everything and when i run the code
And place the turret, the site would lag like craaazy
14:08 I did the same block of code that you have done but its not making the turret point. How do I fix this?
hey warfame,
I need help, why my other turret can't shot my enemy?
it is only my first turret that can shoot and destroy my enemy.
Thank you
What's the usage of FurthestEnemyDist ? I can't understand this. Can you pls help explain more ? Thanks a lot.
Thank you for the game
i am so late but ty for this .this has helped me a lot
Hey man great vid, but one question. How do I fix infinite range on my turret?
Yea. Same thing with me.
Thank you!!!
I had a glitch that I followed everything and the whole thing lagged, it took me so long to figure it out and the way to fix is to delete the wait block in the turret aim and shoot.
Im having trouble with the turret aiming for the closest enemy, is there a way to fix this?
my turrets can target with every distance or dont target
does anybody know what i could have done wrong?
my turret didnt aim on the front enemy but at random enemies, which part should i rewatch to fix the mistake?
This really helped
You posted this on my birthday =D
i need to learn about formulas, i don't know a single thing about those stuff, but great!!!!