-
Hey im new to vb and am taking it in highschool and am working on my final project for the semester now.I came up with an idea for a game like pacman but using different characters.I dont know that much about the language and only knowt he basics.I need to be able to make the "pacman" move in the board but have to stop it from going over the walls.right now i have one image that is the whole course for the game.how can i stop the man from going over the edges/walls.Also how can i tell when it runs into the bad guys and....what is the easiest/best way to make the bad guys move?
thanks alot,
joe
-
without going into to much detail,here's some suedo code I hope can help.
1.Map out your course and get all of the x,y coordinates of every outer point of your 'walls' and call them Wallpoints
2.code stuff like:
x = xPosition + 1 '(horitontal movement)
if xpos = wallpoints then '(there is a wall)
xpos = xpos - 1
end if
3.You can check for collisitions using:
if packmansXYpos = gobblersXYpos then ...
I'm short on time but If you have more detailed questions I'd be glad to try to help.you might have more luck getting answers in the general section of vb-world.
-
Hey I made a pacman game for school last year also. The thing with a ghost is that pacman and the ghost have to be running on the same x,y cordinates so if the x is different by like 1 and then the touch it won't work so I did it a little different. If you give me your email I could send you my old prog if you would like or i could explain it a little better then the other guy did. My email is [email protected].