Create Your Own Pacman Game In Scratch - Part 9

Part 9 - Making the Ghosts Move Randomly
Learn how to design and create your own fully working platform game using the free online programming tool Scratch. Create multiple levels, sprites, enemies and challenges!
This 13 part tutorial series takes you through every step of the way, teaching you key programming skills along the way. Don't just build a replica game - understand how it works, so that you can create your own unique game that works the way you want it to.

Пікірлер: 87

  • @Cuber10139
    @Cuber101392 ай бұрын

    5:38 -Looks like our ghost is a little bit tired- LOLLLLL Got me laughing on the ground!🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣

  • @TheTechTrain

    @TheTechTrain

    2 ай бұрын

    😁

  • @babyflor5377
    @babyflor53772 жыл бұрын

    Thank you you are a true champ man i love your voice and the way you teach is great. Best vídeo game maker teacher ever

  • @nehadutt6843
    @nehadutt68433 жыл бұрын

    Sir, you teach very nicely A round of applause 👏👏👏

  • @TheTechTrain

    @TheTechTrain

    3 жыл бұрын

    You're very kind, I'm very glad you enjoyed it.

  • @axtr0vxnom774
    @axtr0vxnom7743 жыл бұрын

    My Ghost keeps getting stuck in the walls and I need help with that. I have no idea what to do

  • @sureshnagarajan9119

    @sureshnagarajan9119

    3 жыл бұрын

    same it keeps getting stuck in the wall i have changed the size of the wall, the size of the ghost.

  • @prismmaster257

    @prismmaster257

    3 жыл бұрын

    @@sureshnagarajan9119 yea same

  • @b3n-x_137

    @b3n-x_137

    2 жыл бұрын

    Bro I copped his coded the ghost is not good at all it spins around and doesn’t move when it touches the wall

  • @luisjarach
    @luisjarach3 жыл бұрын

    I had a little trouble editing the code, but it works fine!

  • @JulianeMercer
    @JulianeMercer Жыл бұрын

    you are the best teacher ever.

  • @TheTechTrain

    @TheTechTrain

    Жыл бұрын

    Thank you so much Juliane! I'm so glad you're enjoying this series. 😊👍

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

    tip: use clones to make the dots so that you dont take up lots of sprites

  • @qdzssdeqz3709
    @qdzssdeqz37092 жыл бұрын

    thank you so much 😁

  • @janavanwassenhove7844
    @janavanwassenhove78443 жыл бұрын

    I did the same thing but it doesn't work. Can you help me?

  • @Cuber10139

    @Cuber10139

    2 ай бұрын

    Does your ghost still turn around??

  • @chewy4619
    @chewy46192 жыл бұрын

    People are having so many issues because at 11:25 you made a mistake on your editing of the video and never showed you place the "forever" control

  • @danishgamer090

    @danishgamer090

    22 күн бұрын

    yes then i placed it later

  • @Cuber10139
    @Cuber101392 ай бұрын

    -Welcome everyone to this 13 part HARD scratch series- Welcome everyone to this big few hours EASY scratch video and you will make a pac man game when this ends.

  • @TheTechTrain

    @TheTechTrain

    2 ай бұрын

    Glad you liked it!

  • @abbygnr2679
    @abbygnr26793 жыл бұрын

    my ghost is doing a crazy dance kind of thing when it touches the bottom right and left corner of the maze i dont know why

  • @sachinmulay8199
    @sachinmulay81993 жыл бұрын

    My ghost kept just moving a millimeter right and left Can you kindly tell me what I should do?

  • @xyzplayz34
    @xyzplayz342 жыл бұрын

    Hey the tech man! thanks for the video! It’s very helpful but…. I have a problem with my coding. I searched up videos on how to make the ghost code and I came across this/these amazing video/s. I tried doing your code, played with the numbers but my sprite just keeps on teleporting everywhere when it hits a wall. It was fine at first but when it hit the wall it started going crazy. It went to random areas and it was on a wall too (where it landed) so it teleported again it the same thing goes on and on and doesn’t stop. Can you give some ideas?

  • @TheTechTrain

    @TheTechTrain

    2 жыл бұрын

    I'm glad you're enjoying the videos! It's difficult to pinpoint the issue with your code without seeing it. If you go to your project page and click 'Share' and then post the link here I'll be able to see your code and help identify the problem. (Sharing your project won't allow anyone to make changes to it, don't worry!)

  • @demetrekhalvashi7991

    @demetrekhalvashi7991

    Жыл бұрын

    ​@@TheTechTrain i also have that problem and what can i do

  • @srinivasadepu8027
    @srinivasadepu80272 жыл бұрын

    Is this ok when pac man is going up through the lines

  • @mumersheikh9964
    @mumersheikh9964 Жыл бұрын

    best teaching skills

  • @TheTechTrain

    @TheTechTrain

    Жыл бұрын

    Thank you so much! I'm very glad you enjoyed it.

  • @happy_alexen
    @happy_alexen4 жыл бұрын

    I tried to do a code when the ghost is pointing in direction 180 is looking down but now the "ghostlookingup" and the "ghostlookingsideways" costumes are showing really fast! What should I do? Should I give up with the "ghostlookingup" costume and do like you?

  • @abdullahibnmasoud7048

    @abdullahibnmasoud7048

    4 жыл бұрын

    Use the wait 1 second block

  • @TheTechTrain

    @TheTechTrain

    4 жыл бұрын

    As others have said, use the pause block for a second.

  • @johnquinn7630
    @johnquinn76302 жыл бұрын

    My pac man no clips through the wall how to fix pls

  • @limchaimingkpm-guru5624
    @limchaimingkpm-guru56243 жыл бұрын

    Can you send the link??

  • @cn42_millionkylemikaelaa.25
    @cn42_millionkylemikaelaa.253 жыл бұрын

    It doesn't work... I copied everything on ghosts- just don't really work... Are there any more ways to move the ghost?

  • @prismmaster257
    @prismmaster2573 жыл бұрын

    IT WORKED FINE! I DID SOME CHANGES THOUGH

  • @chrisk6637

    @chrisk6637

    Жыл бұрын

    Good job 😄👍

  • @Tino0109
    @Tino01093 жыл бұрын

    My ghost keeps getting stuck and glitching in the walls. Any clue how to fix that?

  • @TheTechTrain

    @TheTechTrain

    3 жыл бұрын

    Try changing the speed of the ghost by altering the number of steps it takes. Also double check that the drawing of your ghost sprite doesn't contain any little stray dots and that it's perfectly centred over the cross.

  • @Tino0109

    @Tino0109

    3 жыл бұрын

    @@TheTechTrain thank you very much I will let you know how that goes, I tried with the steps but I will check out my ghost Sprite thanks!

  • @Tino0109

    @Tino0109

    3 жыл бұрын

    @@TheTechTrain It worked out well after I centered them haha! I was creating the Sprite on another site so I guess when it imported the sprite it was not centered. Thank you!

  • @zahrahaseeb9965
    @zahrahaseeb99652 ай бұрын

    why is my ghost on the line is their a solution to fix it

  • @lizzievlazny3507
    @lizzievlazny3507 Жыл бұрын

    not trying to be mean, but you can just put the pick number in whatever you don't need the variable.

  • @ishaanpatel212
    @ishaanpatel2124 жыл бұрын

    on part 9, in make a block do you have to add a -.

  • @ishaanpatel212

    @ishaanpatel212

    4 жыл бұрын

    @Stable Genius ok

  • @sofefididjfjnekemd
    @sofefididjfjnekemd3 жыл бұрын

    I tried this and all the ghosts did was move up one and then stop

  • @TheTechTrain

    @TheTechTrain

    3 жыл бұрын

    I'm sorry to hear you're having trouble. The code really does work correctly, but if you've made any mistake, even a small one, it can affect the way your game works. Do double check each line carefully.

  • @danishgamer090
    @danishgamer09022 күн бұрын

    MR J ARNOLD you did a mistake in editing the video you put the forever block without showing us in 11:25

  • @matthewj.a1806
    @matthewj.a18062 жыл бұрын

    why does my ghost go to a wall then stand there for the rest of the game????

  • @TheTechTrain

    @TheTechTrain

    2 жыл бұрын

    There's obviously an issue with your code, but without seeing it it's very difficult to know what the problem could be. Feel free to share your project here so that I or someone else can have a look at it and suggest how you could fix it.

  • @louisdebosque7908
    @louisdebosque79083 жыл бұрын

    My ghost keeps going throught the walls how do I fix it ?

  • @TheTechTrain

    @TheTechTrain

    3 жыл бұрын

    I'm not sure what the problem is Louis Debosque, but do feel free to share your game and post the link here, and I may be able to have a look at it.

  • @louisdebosque7908

    @louisdebosque7908

    3 жыл бұрын

    @@TheTechTrain Don't worry i've fixed it ! Also great videos they were very helpful :)

  • @TheTechTrain

    @TheTechTrain

    3 жыл бұрын

    That's great to hear! Do feel free to still share your game on here, I'd love to take a look. 👍

  • @piersmilk

    @piersmilk

    2 жыл бұрын

    @@louisdebosque7908 how did you fix it?

  • @louisdebosque7908

    @louisdebosque7908

    2 жыл бұрын

    @@piersmilk man that was a year ago i dont remember

  • @lydiakim7728
    @lydiakim77284 жыл бұрын

    um the alien guy or whatever goes twirling really fast and crazy

  • @lydiakim7728

    @lydiakim7728

    4 жыл бұрын

    please answer my question

  • @lydiakim7728

    @lydiakim7728

    4 жыл бұрын

    please help

  • @TheTechTrain

    @TheTechTrain

    4 жыл бұрын

    You change the speed by changing the number of steps it takes. So steps+10 might be where you start, but if that's too fast, bring it down to 1 or 2.

  • @LUFFY_GEAR5_yt
    @LUFFY_GEAR5_yt Жыл бұрын

    Uh I might need help I can’t figure out why my ghost it moving left and right but not moving

  • @TheTechTrain

    @TheTechTrain

    Жыл бұрын

    Share the link to your game here so I can see the code and try to spot the issue.

  • @LUFFY_GEAR5_yt

    @LUFFY_GEAR5_yt

    Жыл бұрын

    Ok

  • @LUFFY_GEAR5_yt

    @LUFFY_GEAR5_yt

    Жыл бұрын

    @@TheTechTrain how

  • @LUFFY_GEAR5_yt

    @LUFFY_GEAR5_yt

    Жыл бұрын

    Also do you have discord it’ll make this chat thing way easier

  • @LUFFY_GEAR5_yt

    @LUFFY_GEAR5_yt

    Жыл бұрын

    I sent the like

  • @mr.360programmer4
    @mr.360programmer43 жыл бұрын

    my ghost does no walked

  • @shivertink3156
    @shivertink31563 жыл бұрын

    my ghost just moves left to right VERY FAST

  • @emilyliu3059
    @emilyliu30592 жыл бұрын

    my ghost keeps spining

  • @sarahatif
    @sarahatif3 жыл бұрын

    its glitching a lot

  • @MataPlaysgames
    @MataPlaysgames Жыл бұрын

    i press flag but my ghost going crazy

  • @chanchalchaudhary205
    @chanchalchaudhary2052 жыл бұрын

    Ghost is not moving

  • @michaelbloxupdate2
    @michaelbloxupdate22 жыл бұрын

    for me it stops forever. 😡😡😡But good job!! 😁😁😁

  • @SemisiFatani
    @SemisiFatani7 ай бұрын

    10:27

  • @trantcounty7644
    @trantcounty76442 жыл бұрын

    16:17

  • @WehshiBhatti
    @WehshiBhatti2 жыл бұрын

    this did not work😠

  • @TheTechTrain

    @TheTechTrain

    2 жыл бұрын

    It definitely does work - you can see the game in the video working, and I've had scores of my own students follow this tutorial in class. Don't worry if you've made a mistake - that's part of coding. Have another careful look at your code while watching the video again.

  • @Deniz-mm7zp
    @Deniz-mm7zp3 жыл бұрын

    if my pacman touches the wall, no matter what direction i make it go in, it stays there. Also, my red ghost only goes up and down and when it faces right, it happens so quickly. how do i fix it? By the way, heres the link scratch.mit.edu/projects/546292195

  • @leoyeung6463
    @leoyeung64633 жыл бұрын

    My ghost at 13:22 goes insane, ive tried everything you said but it just keeps teleporting around, ive adjusted the numbers but he still goes insane, here's the link scratch.mit.edu/projects/522217906/editor/