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

  • @Fuelvin
    @Fuelvin2 ай бұрын

    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

    @user-SPEEEDDD

    2 ай бұрын

    CHERRY BOMB

  • @Kaius333

    @Kaius333

    2 ай бұрын

    Wall-nut and Sunflower

  • @MrSharkOfficial

    @MrSharkOfficial

    2 ай бұрын

    Sun producing and sunflowers

  • @user-qu2ii9gc7q

    @user-qu2ii9gc7q

    2 ай бұрын

    CHERRY 🍒💣

  • @khangabang4105

    @khangabang4105

    18 күн бұрын

    W tutorial but when my pea shooters start shooting when i try to drag my peashooters its a seed can you help?

  • @Orsonster
    @Orsonster2 ай бұрын

    You have such a unique approach to programming that I've never seen before!

  • @mickeymouseplays13
    @mickeymouseplays132 ай бұрын

    Now can you add sun now

  • @glade2216
    @glade22162 ай бұрын

    Great as always! :D

  • @DrBoneJones
    @DrBoneJones2 ай бұрын

    Another tutorial! yes I've been waiting!

  • @gikyo
    @gikyo2 ай бұрын

    Fuelvin, you are awesome!

  • @ameero9146
    @ameero914629 күн бұрын

    This helped a lot. Thanks!

  • @jojits2103
    @jojits21032 ай бұрын

    This helped me out so much!

  • @traimitnguyen
    @traimitnguyen2 ай бұрын

    Thank you ❤❤❤

  • @MattAndPock-uk7tz
    @MattAndPock-uk7tz2 ай бұрын

    In Part 3, can you add coneheads and bucketheads

  • @sohumbrahmbhatt
    @sohumbrahmbhatt2 ай бұрын

    Good Job I wish I could code like you!!

  • @Ljossop
    @Ljossop7 күн бұрын

    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.

  • @worldballfilms8271
    @worldballfilms827125 күн бұрын

    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?

  • @THUNDER__PLAYZ13
    @THUNDER__PLAYZ132 ай бұрын

    You are the best

  • @user-cu1eg8tx2q
    @user-cu1eg8tx2qАй бұрын

    my dad loves pvz and thank you for this video

  • @scratchwithboboiguess
    @scratchwithboboiguess2 ай бұрын

    Bro everyday: cool :D

  • @babyjace4512
    @babyjace4512Ай бұрын

    Helps a LOT if your a game dev

  • @Insertgoofynamehere
    @Insertgoofynamehere2 ай бұрын

    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

  • @coder_sai
    @coder_sai2 ай бұрын

    Can you add the sunflower plant, the sun, the sun generator, and the sun cost? you have to do it in part3

  • @thienhainguyenhuy521
    @thienhainguyenhuy5212 ай бұрын

    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

  • @PhongThanh-gz5zk
    @PhongThanh-gz5zk17 күн бұрын

    i'm a new subscriber baucause i want you to be the biggest youtuber 😍

  • @semvermeulen7039
    @semvermeulen70392 ай бұрын

    Please add sun and plant health next time

  • @yayadaou3351
    @yayadaou33512 ай бұрын

    good!

  • @heatherboofer9641
    @heatherboofer964110 күн бұрын

    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?

  • @avgprogamer
    @avgprogamer7 күн бұрын

    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

  • @weichaozhang2555
    @weichaozhang25552 ай бұрын

    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

  • @mickeymouseplays13
    @mickeymouseplays132 ай бұрын

    Can I donate to you you did so good with your stuff

  • @Axolot800
    @Axolot8007 күн бұрын

    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?

  • @whizardfurcorn
    @whizardfurcorn2 ай бұрын

    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?

  • @HorrorBuddies381
    @HorrorBuddies3812 ай бұрын

    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

    @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

    @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.

  • @Lightningaplesock
    @Lightningaplesock2 ай бұрын

    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

    @leowang722

    Ай бұрын

    Had the same problem, double check your variables and rewatch the vid.

  • @yassin-animation
    @yassin-animationАй бұрын

    So uhhhh my game had an animation for shooting peas so combining the pea and pea shooter missed up the code Help please?

  • @PotOfFind
    @PotOfFindАй бұрын

    why isnt it working :(, when i take my peashooter for the second time it becomes the bullet, WHY?

  • @anhtuhoang9058
    @anhtuhoang90582 ай бұрын

    awe yeah

  • @larrycao4458
    @larrycao445824 күн бұрын

    the pea shooters keep shooting when i haven't even placed them

  • @The_Real_Block5
    @The_Real_Block52 ай бұрын

    Can you make a next update of hobo simulator?

  • @henrystickmin8812
    @henrystickmin88122 ай бұрын

    the (Distance to ___) block must feel very sad that nobody uses it

  • @yoguysitsdrak
    @yoguysitsdrakАй бұрын

    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

    @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.

  • @Wacker-du9rd
    @Wacker-du9rd2 ай бұрын

    wheres part 3??? but take ur time!

  • @RobloxSpeedruner-mj9zx
    @RobloxSpeedruner-mj9zx2 ай бұрын

    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

    @alejandromaldonado8817

    2 ай бұрын

    it does get fixed

  • @RobloxSpeedruner-mj9zx

    @RobloxSpeedruner-mj9zx

    2 ай бұрын

    @@alejandromaldonado8817 thx

  • @n0_one-mc5to
    @n0_one-mc5to2 ай бұрын

    Can you add animation?

  • @SouthDragonFood
    @SouthDragonFood2 ай бұрын

    its 2am when i watched this video

  • @SquidoWuido
    @SquidoWuidoАй бұрын

    The Peashooter doesn’t snap onto the grid 😭

  • @mickeymouseplays13
    @mickeymouseplays132 ай бұрын

    Of much parts are their

  • @Hamoody15
    @Hamoody152 ай бұрын

    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

    @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

    @Hamoody15

    2 ай бұрын

    @@thetwoRascalsmaybe 🤷‍♂️

  • @user-pi3re2bj4v
    @user-pi3re2bj4v13 күн бұрын

    12:54

  • @user-df6jm7on9y
    @user-df6jm7on9y2 ай бұрын

    Make pls sun and sunflower

  • @leowang722

    @leowang722

    Ай бұрын

    In parts 3&4

  • @Plushy_shorts
    @Plushy_shorts2 ай бұрын

    It doesn’t work

  • @ElementalV
    @ElementalV2 ай бұрын

    First

Келесі