Scratch 3.0 Tutorial: How to Make Plants vs. Zombies (Part 2)
Тәжірибелік нұсқаулар және стиль
In this video, Scratch 3.0 Tutorial: How to Make Plants vs. Zombies (Part 2), I create a plant selection screen, a grid placement system, plant placement previews, and a simple zombie spawning system.
Enroll in my Unity and C# course here! (NOW 70% OFF)
www.fuelvin-academy.com/
Plants vs. Zombies (pvz for short) is a tower defense game where players use plants to defend their house from invading zombies. The goal for the players is to collect sun and place plants to stop the zombies from reaching their home.
Subscribe for more tutorials on how to make games in Scratch!
Starter project:
scratch.mit.edu/projects/9946...
Join my Discord:
/ discord
Timestamps:
0:00 Intro
0:44 Plant selection area
1:36 Pea shooter icon
7:56 Combining pea & pea shooter sprites
11:19 Fix zombie touching
13:01 Grid system
25:50 Pea shooter shadow
28:13 Prevent overlapping plants
30:10 Zombie spawner
32:50 Playtesting
33:59 Outro
How to Make Plants vs. Zombies (Part 1):
• Scratch 3.0 Tutorial: ...
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!
For business inquiries: contact@fuelvin.com
#scratch #gamedev #gamedevelopment
Пікірлер: 63
Hope you enjoyed this video! What do you want to see me add next? My Unity From Scratch course is now 70% OFF for a limited time! Enroll here: www.fuelvin-academy.com/ Join my Discord: discord.gg/qUgyF8M5
@user-SPEEEDDD
2 ай бұрын
CHERRY BOMB
@Kaius333
2 ай бұрын
Wall-nut and Sunflower
@MrSharkOfficial
2 ай бұрын
Sun producing and sunflowers
@user-qu2ii9gc7q
2 ай бұрын
CHERRY 🍒💣
@khangabang4105
18 күн бұрын
W tutorial but when my pea shooters start shooting when i try to drag my peashooters its a seed can you help?
You have such a unique approach to programming that I've never seen before!
Now can you add sun now
Great as always! :D
Another tutorial! yes I've been waiting!
Fuelvin, you are awesome!
This helped a lot. Thanks!
This helped me out so much!
Thank you ❤❤❤
In Part 3, can you add coneheads and bucketheads
Good Job I wish I could code like you!!
I redid the entire project and i ran into many problems: the peas are duplicating themselves every 0.2 seconds. Note that i used costume-based animations instead of using the fisheye effect and for that I had to use messages to shoot the projectiles and animate the plant at the same time. The shooting script and the animation script are activating over and over again and never activate together. This is still happening even though there IS a wait block after the message is broadcasted. There are also no forever blocks anywhere on the message scripts. The hidden peashooter also shoots peas for some reason, and if I try to place another peashooter, it just spawns a pea.
I have a problem the peashooter just snaps on the top right corner of my screen I made the grid and followed everything idk how to fix it?
You are the best
my dad loves pvz and thank you for this video
Bro everyday: cool :D
Helps a LOT if your a game dev
do u think u can do a tutorial on a clicker game like planet clicker where u can click arrows to buy planets and stuff like that
Can you add the sunflower plant, the sun, the sun generator, and the sun cost? you have to do it in part3
I have a problem where when i try to place my pea shooter to the nearest thing after creating the grid, it always teleports to X : 271 and Y : -143
i'm a new subscriber baucause i want you to be the biggest youtuber 😍
Please add sun and plant health next time
good!
is anyone else's peashooter literary just becoming the pea while follow ing the pea bc mine is ive been copying everything exactly and just now the peashooter isn't staying in place its just following the pea then disintegrates when it hits the zombie, What did I do wrong?
i have a problem when i select a peashooter and place it, the next one i select creates the peas where im dragging the peashooter
theres a bug where if you click the seed packet twice without placing the first one down, you'll get two on the same grid spot when you click on a grif
Can I donate to you you did so good with your stuff
when i first place the peashooter its ok but if i place it again i see the bullet sprite following my mouse pointer before placing the peashooter down. Do you know how to fix this issue?
Whenever I place the first peashooter it works fine, but in the middle of placing the next one it shoots in mid-placement, any help?
I don't know what I did but whenever I click the peashooter to place it, its fine but when I click it again it turns into the pea?
@HorrorBuddies381
2 ай бұрын
I also have an error with the shadow for the pea shooter so when I press the green flag the pea shooter spawns in the middle without me pressing the button to spawn the pea shooter and then when I press the button the pea shooter in the middle disappears and their is no shadow to be seen.
@Fuelvin
2 ай бұрын
For both of those issues, make sure to double check that your CloneType names are being used correctly (PrePlant, Plant, Bullet)! Also, make sure you actually set them and that they are being set in the correct places.
during adding the pea and peashooter when i run the game and place a peashooter the peashooter would just be gone but the pea would fly across the screen if you or anyone can help me i would be greatful
@leowang722
Ай бұрын
Had the same problem, double check your variables and rewatch the vid.
So uhhhh my game had an animation for shooting peas so combining the pea and pea shooter missed up the code Help please?
why isnt it working :(, when i take my peashooter for the second time it becomes the bullet, WHY?
awe yeah
the pea shooters keep shooting when i haven't even placed them
Can you make a next update of hobo simulator?
the (Distance to ___) block must feel very sad that nobody uses it
hey i have this problem, so whenever peashooter shoots his peas, the peas will somehow make another pea, AND DEAL TRIPLE DAMAGE, anyway to fix this?
@Ljossop
7 күн бұрын
I think you can't have costume-based animations for the peashooter. You and I may never know how to fix this bug while keeping the animations unless the creator finally starts answering his comments, instead of just hearting them and not saying anything.
wheres part 3??? but take ur time!
hi Fuelvin, am not sure if your gonna read this but on the start of the video when I placed a peashooter it was all fine, but when I click the seed package again, before I plant it it already starts to make peas and all the other peas of other peashooter spawn from that peashooter, can you help me? Or can someone tell me if its fixed later on te video
@alejandromaldonado8817
2 ай бұрын
it does get fixed
@RobloxSpeedruner-mj9zx
2 ай бұрын
@@alejandromaldonado8817 thx
Can you add animation?
its 2am when i watched this video
The Peashooter doesn’t snap onto the grid 😭
Of much parts are their
I think there is a problem in ur code that u broadcast a local message that is (HitZombie) which means that all zombies on screen will take damage, plus the Zombies wouldn’t flash if they didn’t receive the (Flash) that as will means that all the Zombies on Screen gets damage and a Flash effect, i hope it’s fixed soon🙂
@thetwoRascals
2 ай бұрын
It won't since when it broadcast the message the zombie sees if it is touching the pea and if it is then it takes the damage 😊
@Hamoody15
2 ай бұрын
@@thetwoRascalsmaybe 🤷♂️
12:54
Make pls sun and sunflower
@leowang722
Ай бұрын
In parts 3&4
It doesn’t work
First