game help

Questions about programming languages and debugging
Post Reply
bubzuru
.net coder
.net coder
Posts: 700
Joined: 17 Apr 2007, 16:00
17
Contact:

game help

Post by bubzuru »

tryna make a game in vb 2005 jw if anyone has an easy way to make 1 pictuurebox chase anothere 1 like the ghost in pacman :?: plz help :-k

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

It's all about if.

if pacman is topright then
the ligglte ghost can only move y+1,x+1 if he gets tuck in a wall, x-1,y-1 etc...
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

bubzuru
.net coder
.net coder
Posts: 700
Joined: 17 Apr 2007, 16:00
17
Contact:

Post by bubzuru »

maybe an example just two picture one chasing the other

herz the code i use to make the pacman move

Picture1.Left = Picture1.Left + 1
Picture1.Left = Picture1.Left - 1

and so on

plz make an example

Post Reply