Scratch 3.0 Tutorial: How to Make Plants vs. Zombies (Part 2)

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 140

  • @Fuelvin
    @Fuelvin  8 місяців тому +12

    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 8 місяців тому

      CHERRY BOMB

    • @Kaius333
      @Kaius333 8 місяців тому +2

      Wall-nut and Sunflower

    • @SillyTheShark1
      @SillyTheShark1 8 місяців тому

      Sun producing and sunflowers

    • @khangabang4105
      @khangabang4105 6 місяців тому +1

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

    • @luanafinardi2798
      @luanafinardi2798 3 місяці тому

      @@khangabang4105 it might be cause you're dragging the seed packet or you have the same problem i do, cause when i try to place down a second peashooter it doesnt work.
      try going back in the vid and looking at the code to see if you copied anything wrong.

  • @Orsonster
    @Orsonster 8 місяців тому +8

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

  • @thienhainguyenhuy521
    @thienhainguyenhuy521 8 місяців тому +6

    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

  • @trikzzznlafzzz4027
    @trikzzznlafzzz4027 2 місяці тому +4

    Hi Fuelvin! I subscribed. I have an issue. my peashooter clone keeps on cloning itself and does not delete itself. The clones keep on coming until my PC lags. More clones of my peashooter spawns as soon as a pea comes out of it

    • @trikzzznlafzzz4027
      @trikzzznlafzzz4027 2 місяці тому +2

      Please put a screenshot of your entire code at the end of each video

  • @eulalioignacio7081
    @eulalioignacio7081 4 місяці тому +1

    had a problem with the zombies, when the second zombie comes, one zombie gets shorter
    or taller, how do i fix this?

  • @SHRIMPOISREAL
    @SHRIMPOISREAL 5 місяців тому +2

    Yeah, the combined pea and pea shooter sprite ruined my code again and I can't fix it. @Fuelvin, I have an idle animation for pea shooter so is that why?

  • @yoguysitsdrak
    @yoguysitsdrak 7 місяців тому +3

    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 6 місяців тому +1

      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.

    • @luanafinardi2798
      @luanafinardi2798 3 місяці тому

      i had the same issue and it got solved after i went back in the vid and found something wrong with my code i dont remenber exactly what it was but it was something to do with the clonetype variable

  • @MarkDanielBelledo
    @MarkDanielBelledo 3 місяці тому +1

    I'm making it in my tablet and the pea/damage block is not showing

  • @MattAndPock-uk7tz
    @MattAndPock-uk7tz 8 днів тому

    Why didnt you use the distance to mouse pointer for the grid snapping script, I used this:
    if distance to mouse pointer < 25 then
    (the place code)
    and it works just fine.

  • @blokesaintgaming-withit
    @blokesaintgaming-withit 2 місяці тому +3

    Help!!! When I place the first pea shooter, it is fine but when i place the next ones, the pea shooters all go together in one big pile.

    • @Lycervdald
      @Lycervdald Місяць тому

      Check if the variables are for this sprite only

    • @Ryuuuu991
      @Ryuuuu991 3 дні тому

      @@Lycervdald Thx

    • @ekarizqiromadhon4821
      @ekarizqiromadhon4821 21 годину тому

      ​@@Lycervdaldwhen i clone pea shooter from pea shooter option why pea stops?,,and when i put the cloned pea shooter on the ground, the pea started walking again, maybe you can help me

  • @JosefTheCalabrian
    @JosefTheCalabrian 5 днів тому

    why when i spawn a pea shooter it goes to the first collumn

  • @Water-zz3fu
    @Water-zz3fu 16 днів тому

    When i place the first peashooter its fine but when i place the second one it spawns as a pea. How do i fix this?

  • @glade2216
    @glade2216 8 місяців тому +2

    Great as always! :D

  • @Strappedvenus.
    @Strappedvenus. Місяць тому

    Help me please i have a issue where it doesnt let me place the peashooters and ive tried to fix it 10 times

  • @gikyo
    @gikyo 8 місяців тому +1

    Fuelvin, you are awesome!

  • @HorrorBuddies381
    @HorrorBuddies381 8 місяців тому +1

    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 8 місяців тому +1

      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  8 місяців тому +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.

  • @MatiasJoseCelsoLauraAncco
    @MatiasJoseCelsoLauraAncco 18 днів тому

    bro tengo problemas cuanto pongo los puntos rojos no se disparsen por los cuadrados

  • @coder_sai
    @coder_sai 8 місяців тому +1

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

  • @angelus9762
    @angelus9762 3 місяці тому

    after adding the prevent overlapping plants my peashooters go invisible and the pea's fully and don't hit the zombies anymore but they are still in the log list

  • @Leonid3097
    @Leonid3097 Місяць тому

    Hey bro is it not work, I combining pea and peashooter but peashooter shoot himself😢

  • @DostyBaguette
    @DostyBaguette 7 місяців тому

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

  • @yassin-animation
    @yassin-animation 7 місяців тому +1

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

  • @FrightfulMC
    @FrightfulMC Місяць тому

    For the grid you can just set the x and y to the x or y divided by grid part size rounded and then multiplied by the grid part size

  • @MattAndPock-uk7tz
    @MattAndPock-uk7tz 8 місяців тому +2

    In Part 3, can you add coneheads and bucketheads

  • @ekarizqiromadhon4821
    @ekarizqiromadhon4821 21 годину тому

    I had a problem at the 7th minute where when I put the first bean shooter it was still safe, but when I was going to put the second bean shooter suddenly the bean got stuck in the second bean shooter

    • @ekarizqiromadhon4821
      @ekarizqiromadhon4821 21 годину тому

      and when I put the peashooter on the ground, the peashooter came out with peanuts again

    • @ekarizqiromadhon4821
      @ekarizqiromadhon4821 21 годину тому

      and when I put the second pea shooter on the ground,,, the first pea shooter came out with another pea

  • @jojits2103
    @jojits2103 8 місяців тому +1

    This helped me out so much!

  • @josephharris9393
    @josephharris9393 2 місяці тому

    While i have a plant selected and i hover over a planted plant, it moves the plant to the exact plant i selected.

  • @Insertgoofynamehere
    @Insertgoofynamehere 8 місяців тому

    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

  • @DrBoneJones
    @DrBoneJones 8 місяців тому

    Another tutorial! yes I've been waiting!

  • @mietekztandolii
    @mietekztandolii 3 місяці тому

    When i am placing plant the peashooters aren't shooting, how can i fix this?

  • @luanafinardi2798
    @luanafinardi2798 3 місяці тому

    Does anyone here know how to fix the problem where you cant place down more than one peashooter? i tried solving it but nothing i've tried seems to work

  • @avgprogamer
    @avgprogamer 6 місяців тому

    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

    • @Idiotic_Fortnite
      @Idiotic_Fortnite 5 місяців тому

      Did you select "For this Sprite only"?
      That fixed it for me

    • @avgprogamer
      @avgprogamer 5 місяців тому

      @@Idiotic_Fortnitehe fixed it later in the tutorial, thanks for the tip though!

    • @ekarizqiromadhon4821
      @ekarizqiromadhon4821 21 годину тому

      ​@@Idiotic_Fortnite which variable?

  • @homckach8817
    @homckach8817 2 місяці тому

    28:16 Thank you SO much for this!

  • @yael5090
    @yael5090 Місяць тому

    anyone knows when im placing another peashooter the pea stucks to the plant while i am still placing it and the other peas get stuck too?

  • @heatherboofer9641
    @heatherboofer9641 6 місяців тому

    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?

    • @SHRIMPOISREAL
      @SHRIMPOISREAL 5 місяців тому

      My peashooter is being treated like the pea. I wish I skipped the combined pea and peashooter sprites cuz they worked just fine, i only copied him cu I thought he knew what he was doing

  • @n0_one-mc5to
    @n0_one-mc5to 8 місяців тому

    Can you add animation?

  • @gabinlelievre2996
    @gabinlelievre2996 2 місяці тому

    32:30 thank you so much, I've been trying to make a game (where you shoot enemies) but I couldn't figure how to kill an enemy 1 by 1 instead of all of them

    • @rechellejamila3515
      @rechellejamila3515 Місяць тому

      i also have that problem, but i fixed it, heres how: first find the "health < 1" on the zombie sprite, and then change the "hide" into "delete this clone" if that didnt work add in the "touching then" after the "hitZombie" broadcast.

  • @whizardfurcorn
    @whizardfurcorn 7 місяців тому

    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?

  • @scrap7315
    @scrap7315 29 днів тому

    help for some reason all my zombies die when one dies

  • @Axolot800
    @Axolot800 6 місяців тому

    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?

  • @RobloxSpeedruner-mj9zx
    @RobloxSpeedruner-mj9zx 8 місяців тому

    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

  • @AdlerAnimates
    @AdlerAnimates 7 місяців тому

    Helps a LOT if your a game dev

  • @ameero9146
    @ameero9146 6 місяців тому

    This helped a lot. Thanks!

  • @96isthebestnumber
    @96isthebestnumber Місяць тому

    i tried this tutorial but after i added the PrePlant thing all the clones of the pea shooter excluding the PrePlant clone started hiding (without any hide block)

  • @Golden_static
    @Golden_static 8 місяців тому

    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

    • @Earth_Planetballs
      @Earth_Planetballs 7 місяців тому

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

  • @evakoval2814
    @evakoval2814 5 місяців тому

    This is too op great job I think you must have *100 likes on this Video

  • @THUNDER__PLAYZ13
    @THUNDER__PLAYZ13 8 місяців тому +1

    You are the best

  • @scratchwithboboiguess
    @scratchwithboboiguess 8 місяців тому

    Bro everyday: cool :D

  • @weichaozhang2555
    @weichaozhang2555 8 місяців тому

    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

  • @PhongThanh-gz5zk
    @PhongThanh-gz5zk 6 місяців тому

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

  • @TylerJackson-d9g
    @TylerJackson-d9g 7 місяців тому

    my dad loves pvz and thank you for this video

  • @ВолодарШабат
    @ВолодарШабат 23 дні тому

    Me get the problem when me do click to pea shot he getting 1000 clones and me can't logic of what this

  • @worldballfilms8271
    @worldballfilms8271 6 місяців тому +1

    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?

  • @traimitnguyen
    @traimitnguyen 8 місяців тому

    Thank you ❤❤❤

  • @the_real_quack_456
    @the_real_quack_456 Місяць тому +1

    on chapter 5, whenever the zombie receives the hit message, it will still take damage even if touching a regular peashooter

    • @epikistrash
      @epikistrash Місяць тому

      yep i saw that as well but shouldn't be a big issue. like who is gonna plant a plant right ontop of the zombie???

    • @the_real_quack_456
      @the_real_quack_456 Місяць тому

      @@epikistrash true

  • @ruiwu4126
    @ruiwu4126 10 днів тому

    There is a bug where the pea is shooting not the pea shooter

  • @The_Real_Block5
    @The_Real_Block5 8 місяців тому

    Can you make a next update of hobo simulator?

  • @ILikeWafflez
    @ILikeWafflez 2 місяці тому

    When ever The Peashooter Shoots It Shoots Twice Bullets , and sometimes the bullet even shoots another bullet , and also the bullet will get stuck when touching the zombie and it will keep dealing damage to the zombies since the zombies keep touching the bullet

  • @Brenard7i843
    @Brenard7i843 4 дні тому

    Omg im so stupid i was wondering why the bullet has triple damage because i forget to take out the repeat block in the zombie.

  • @sohumbrahmbhatt
    @sohumbrahmbhatt 8 місяців тому

    Good Job I wish I could code like you!!

  • @videosofYAY
    @videosofYAY 4 місяці тому +1

    PLEASE READ THIS PLEAAAASE
    problem:-
    Whenever i place my peashooter after combining PEA and PEASHOOTER then it just stands there menacingly no shooting
    It just doesnt work please make a video where you solve ALL the common problems including this one
    Really love it if ya do!

  • @Planktonstolemypillow
    @Planktonstolemypillow 7 місяців тому

    The Peashooter doesn’t snap onto the grid 😭

  • @Hamoody15
    @Hamoody15 8 місяців тому

    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 8 місяців тому

      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 8 місяців тому

      @@thetwoRascalsmaybe 🤷‍♂️

  • @larrycao4458
    @larrycao4458 6 місяців тому

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

  • @yayadaou3351
    @yayadaou3351 8 місяців тому

    good!

  • @Wacker-du9rd
    @Wacker-du9rd 8 місяців тому

    wheres part 3??? but take ur time!

  • @semvermeulen7039
    @semvermeulen7039 8 місяців тому +1

    Please add sun and plant health next time

  • @Bryan_Anggoro
    @Bryan_Anggoro 3 місяці тому

    7:34

  • @TheDopeHat
    @TheDopeHat 5 місяців тому

    14:05 for later

  • @SouthDragonFood
    @SouthDragonFood 8 місяців тому

    its 2am when i watched this video

  • @SHRIMPOISREAL
    @SHRIMPOISREAL 5 місяців тому

    My peashooter spawns the peas at the very bottom and then treat another clone of peashooter as the pea

  • @vanessastorr7325
    @vanessastorr7325 3 місяці тому +1

    did not work😥😥😥😥😥😥😥😥😥😥😥😥😥😥

  • @Wawayep
    @Wawayep Місяць тому

    6:28

  • @goomba_wave
    @goomba_wave 6 місяців тому

    12:54

  • @anhtuhoang9058
    @anhtuhoang9058 8 місяців тому

    awe yeah

  • @JaseCassibo
    @JaseCassibo 5 місяців тому

    hi😀

  • @henrystickmin8812
    @henrystickmin8812 7 місяців тому

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

    • @SisnistarisGD
      @SisnistarisGD 24 дні тому

      ummm actually ive use it try explaining how plant detective zombie to my friend

    • @henrystickmin8812
      @henrystickmin8812 24 дні тому

      @@SisnistarisGD If you have a stroke, please go to the hospital instead of commenting on youtube

  • @Giga_MRmars-tw2em9
    @Giga_MRmars-tw2em9 Місяць тому

    I didn't succeed :(

  • @YourFunnyManXD
    @YourFunnyManXD 2 місяці тому

    28:23 coding to hack in pvz😂😂
    (if you didn’t get it you can as many plants as you want in one square if you hack)

  • @ДиманТоп2024
    @ДиманТоп2024 8 місяців тому

    Make pls sun and sunflower

  • @Fannysstudio-o2l
    @Fannysstudio-o2l Місяць тому

    NNIICCEEE

  • @thegoof2763
    @thegoof2763 19 днів тому

    what really makes me mad is the fact you use yes and no and not 0 and 1 or true and false

  • @yorkxz-dog
    @yorkxz-dog 5 місяців тому

    pls add zombie eating

  • @Plushy_world_offical
    @Plushy_world_offical 8 місяців тому +1

    It doesn’t work

  • @catguy112
    @catguy112 13 днів тому

    bros making everything in pure magic scam!

  • @Nicoliyap
    @Nicoliyap 4 місяці тому +1

    i love your mum hehehehehe

  • @KassondraSteffen
    @KassondraSteffen 3 місяці тому

    1110

  • @EKMEKSEVER_MC
    @EKMEKSEVER_MC 5 місяців тому

    not working👎

  • @ElementalV
    @ElementalV 8 місяців тому

    First