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
5:38 -Looks like our ghost is a little bit tired- LOLLLLL Got me laughing on the ground!🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
@TheTechTrain
2 ай бұрын
😁
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
Sir, you teach very nicely A round of applause 👏👏👏
@TheTechTrain
3 жыл бұрын
You're very kind, I'm very glad you enjoyed it.
My Ghost keeps getting stuck in the walls and I need help with that. I have no idea what to do
@sureshnagarajan9119
3 жыл бұрын
same it keeps getting stuck in the wall i have changed the size of the wall, the size of the ghost.
@prismmaster257
3 жыл бұрын
@@sureshnagarajan9119 yea same
@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
I had a little trouble editing the code, but it works fine!
you are the best teacher ever.
@TheTechTrain
Жыл бұрын
Thank you so much Juliane! I'm so glad you're enjoying this series. 😊👍
tip: use clones to make the dots so that you dont take up lots of sprites
thank you so much 😁
I did the same thing but it doesn't work. Can you help me?
@Cuber10139
2 ай бұрын
Does your ghost still turn around??
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
22 күн бұрын
yes then i placed it later
-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
2 ай бұрын
Glad you liked it!
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
My ghost kept just moving a millimeter right and left Can you kindly tell me what I should do?
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
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
Жыл бұрын
@@TheTechTrain i also have that problem and what can i do
Is this ok when pac man is going up through the lines
best teaching skills
@TheTechTrain
Жыл бұрын
Thank you so much! I'm very glad you enjoyed it.
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
4 жыл бұрын
Use the wait 1 second block
@TheTechTrain
4 жыл бұрын
As others have said, use the pause block for a second.
My pac man no clips through the wall how to fix pls
Can you send the link??
It doesn't work... I copied everything on ghosts- just don't really work... Are there any more ways to move the ghost?
IT WORKED FINE! I DID SOME CHANGES THOUGH
@chrisk6637
Жыл бұрын
Good job 😄👍
My ghost keeps getting stuck and glitching in the walls. Any clue how to fix that?
@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
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
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!
why is my ghost on the line is their a solution to fix it
not trying to be mean, but you can just put the pick number in whatever you don't need the variable.
on part 9, in make a block do you have to add a -.
@ishaanpatel212
4 жыл бұрын
@Stable Genius ok
I tried this and all the ghosts did was move up one and then stop
@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.
MR J ARNOLD you did a mistake in editing the video you put the forever block without showing us in 11:25
why does my ghost go to a wall then stand there for the rest of the game????
@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.
My ghost keeps going throught the walls how do I fix it ?
@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
3 жыл бұрын
@@TheTechTrain Don't worry i've fixed it ! Also great videos they were very helpful :)
@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
2 жыл бұрын
@@louisdebosque7908 how did you fix it?
@louisdebosque7908
2 жыл бұрын
@@piersmilk man that was a year ago i dont remember
um the alien guy or whatever goes twirling really fast and crazy
@lydiakim7728
4 жыл бұрын
please answer my question
@lydiakim7728
4 жыл бұрын
please help
@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.
Uh I might need help I can’t figure out why my ghost it moving left and right but not moving
@TheTechTrain
Жыл бұрын
Share the link to your game here so I can see the code and try to spot the issue.
@LUFFY_GEAR5_yt
Жыл бұрын
Ok
@LUFFY_GEAR5_yt
Жыл бұрын
@@TheTechTrain how
@LUFFY_GEAR5_yt
Жыл бұрын
Also do you have discord it’ll make this chat thing way easier
@LUFFY_GEAR5_yt
Жыл бұрын
I sent the like
my ghost does no walked
my ghost just moves left to right VERY FAST
my ghost keeps spining
its glitching a lot
i press flag but my ghost going crazy
Ghost is not moving
for me it stops forever. 😡😡😡But good job!! 😁😁😁
10:27
16:17
this did not work😠
@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.
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
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/