I have to make this game as homework , and as a starter this helped me a lot, lot lot. Still I needed something a bit more complicated with the ghosts, they're supposed to do a different task each, im still figuring that out! Thank you a lot!!
I’m having problems with my program. It keeps saying there is an error when I write private void reset game. Also I cannot properly move Pac-Man around. I do not know the problems I’m having as I have followed all of your steps. Any help?
I have a question i desigend the form loike you did but when i debuged the game pink and yellow ghost werent in thier place and i didnt finish the code at that time
'KeyPressEventArgs' does not contain a definition for 'KeyCode' and no accessible extension method 'KeyCode'. It seemss to be fine in keydown but not working in the keyisup function?
Hi, I've done a video on how to play different sound files in windows forms on the channel. That should help you on how to include sound to this type of game.
I can't get my ghosts to slow down :/ they bump against the walls but really really fast, they are set to 1 :( and they are still not slowing down... any suggestions how I can fix this?
It means the pictures in your resources are called different than left right etc. You can open the resources and rename the pictures to fix this issue or just call them as they are named in there.
@@urosgojak9317 you can add more levels by inserting new form to the current project in the solutions explorer. From there you can make a new level and load it when the current one has been passed.
I have a question... Why do you use pacman.Left ( if (goleft == true) { pacman.Left -= playerSpeed; pacman.Image = Properties.Resources.left; } ) and pacman.Top ( if (godown == true) { pacman.Top += playerSpeed; pacman.Image = Properties.Resources.down; } ) for pacman's movement and not pacman.Right or pacman.Bottom? I mean if he goes bottom, why don't you use pacman.Bottom ?
I should have used the bottom and right at the time but I didn't because I got used to programming similar apps on JavaScript before this. So I think my old practice just translated to this one. You can use picturebox.Bottom and pictureBox.Right easily to achieve the results you need for your projects.
When i try to write "pacman.Left" (14.05) the Left part turns red, why is that? And the same thinga applies to pacman, but i added him to the int part but idk if that is correct :/
The pacman is name of that picture box. Integers don't have left or top properties. Name the picturebox pacman in the form and then you can access left and top properties of the pacman.
@@mooict I haven't added moving ghosts yet and in the game I'm making they are sharks and yes I have added my own names in the code and not ghost and Pacman names.
Download this project here github.com/mooict/Pac-man-game-tutorial-in-windows-form
I have to make this game as homework , and as a starter this helped me a lot, lot lot.
Still I needed something a bit more complicated with the ghosts, they're supposed to do a different task each, im still figuring that out!
Thank you a lot!!
You really helped me a lot!! Thank you so much!! I've learned a lot of things thanks to you!! :DD Good vibes to you wherever you are!!!
Thank you for the kind comment. I’m glad this tutorial was helpful 😊
Thank you for the video, good and simple manual.
what a video thankyou so very much, u saved my coursework
Glad it helped
Thanks dude, up helped me so much on learning about "How to use foreach"... Thank you so much ~~~
I love this video ❤️
thank you sir you teach me how to create a game using c#
How can I make this a 2 player game by making one of the ghosts move using the wasd keys?
Thanks. Done it. Next stop jet shooter.
Thank you! the best game tutorial in my life)
I’m having problems with my program. It keeps saying there is an error when I write private void reset game. Also I cannot properly move Pac-Man around. I do not know the problems I’m having as I have followed all of your steps. Any help?
thank youu
Your training was perfect.....
I wish you success^^
Thankyou just made this for small project :) Best tutorial!!!!🫶🏻🫶🏻❤️
Glad it was helpful!
Very good game
I have a question i desigend the form loike you did but when i debuged the game pink and yellow ghost werent in thier place and i didnt finish the code at that time
'KeyPressEventArgs' does not contain a definition for 'KeyCode' and no accessible extension method 'KeyCode'. It seemss to be fine in keydown but not working in the keyisup function?
Add a key up event to the form instead of key press event. Key press event do not support key code
@@mooict thank you!
ty
Thx bro
Nice!!! Good Work
Thank you im glad you like it. Let me know if you want any other tutorials
How do I make PacMan stop when it touches the wall instead of the game ending?
I'm currently working on the new pac man tutorial with wall hits. Still a work in progress ☺️
@@mooict I found a way to do this, but it takes a long time.
Noice well done 👍
@@mooict Thanks
Can somebody help me with this please?
please can you make a video of how can make the coins make a sound we pacman collect it
Hi, I've done a video on how to play different sound files in windows forms on the channel. That should help you on how to include sound to this type of game.
If you can help, the yellow ghost is moving from picturebox 4 to the right, instead of picturebox 3, how can I fix it?
Thanks ☺
Check the name of the picture box 3 and 4 in the property window. If it’s James differently you can change it in the code.
Muy buen juego
i always wanted to make Creeper Eats Ghosts
And now you can. More power to ya
AW MAN
Game over label is not come when the game is over and in the code u gave there is no reset and game over function in the written code
I can't get my ghosts to slow down :/ they bump against the walls but really really fast, they are set to 1 :( and they are still not slowing down... any suggestions how I can fix this?
OMG I fixed it it doesn't matter! haha check those curly braces everyone!!
I love this video 🖤
God work !!
Thank you. Glad you liked it. I'm working on WPF C# version of this at the moment will be up soon hopefully
@@mooict great, I'll be waiting for you
(postscript I am Bolivian, forgive my English)
Could you please made this into console.app visual studio?
is this game made with object-oriented programming ?
No I haven't used OOP in this example
in the main game timer part it is telling me resources does not contain a definition for left, right, etc
It means the pictures in your resources are called different than left right etc. You can open the resources and rename the pictures to fix this issue or just call them as they are named in there.
@@mooict thank you, so far you're my favorite person on the internet to help me with game dev
is this applicable for 2010?
Yes it is
What is the template. Visual Basic or Visual C#?
This is C# .Net Framework
i made a maze and put coins all over the maze (now my hands hurt)
I have a problem when i press arrow to go its doing it job,but when i put my finger off the arrow or i change direction game restart it self
Check the key up event from the tutorial. I think it's restarting the game from any key release instead of enter key.
@@mooict thanks,nice contect i like it so much.Will u make a video how to make levels in this game?
@@urosgojak9317 you can add more levels by inserting new form to the current project in the solutions explorer. From there you can make a new level and load it when the current one has been passed.
I have a question... Why do you use pacman.Left
( if (goleft == true)
{
pacman.Left -= playerSpeed;
pacman.Image = Properties.Resources.left;
}
)
and pacman.Top
( if (godown == true)
{
pacman.Top += playerSpeed;
pacman.Image = Properties.Resources.down;
}
)
for pacman's movement and not pacman.Right or pacman.Bottom?
I mean if he goes bottom, why don't you use pacman.Bottom ?
I should have used the bottom and right at the time but I didn't because I got used to programming similar apps on JavaScript before this. So I think my old practice just translated to this one. You can use picturebox.Bottom and pictureBox.Right easily to achieve the results you need for your projects.
When i try to write "pacman.Left" (14.05) the Left part turns red, why is that? And the same thinga applies to pacman, but i added him to the int part but idk if that is correct :/
The pacman is name of that picture box. Integers don't have left or top properties. Name the picturebox pacman in the form and then you can access left and top properties of the pacman.
hiii my pacman is not moving why please help
My pac man doesn't eat the coins and the score doesn't work. What can I do?
Hi, check the tags for the coins and make sure its the same as the tutorial.
@@mooict Thank you, it worked!
The character won't move and the code doesn't seem to have any errors.
Check if the key down and key up events are linked to the form. You can do this by going to the events window inside the properties.
@@mooict They are
@@aidanacero4912 are the ghosts moving in the game?
@@mooict I haven't added moving ghosts yet and in the game I'm making they are sharks and yes I have added my own names in the code and not ghost and Pacman names.
@@mooict BRUH I JUST REALIZED IT WAS BECAUSE I HAD A CUSTOM WINDOW BORDER
the coins are not disappearing 😭😢
What version of Visual Studio are you using?
2019 version
Is this an Asmr
It can be 👍
@@mooict 😂😂😂😂 yeah
Btw should i understand visual studio fully before starting unity?
@@shubhsanganeria9222 no you don't have to, it's C# you will need to be familiar with to use unity properly.
@@mooict oh kk thanks👍👍😄
My pacman is not moving :(
Neither do the ghosts
Hi have you enabled the timer?
@@mooict Yes
@@noonecaresbish check if the timer event is linked to the timer and the key down and key up are linked to the form.
@@mooict I solved the problem 😄
"coins"
lol coins u should put dots
Animated coins look better but I get your points. Dots would have much more optimised for this game but look how shiny they are 😂
yeAh coins have animations and dots do not have AND THE cOiNs ArE sO sHiNy
and is the size of the window really cares like can i use something random instead of what you used
AND WHY MS PAC-MAN
@@shilperwork9755 why are you being so rude for