It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

So I have to make a Pacman game...

Moderator: dafunkymunky

So I have to make a Pacman game...

Postby unholymist on Thu Jan 14, 2010 12:46 am

Hey, so for my programming class I have to make a Pacman-like Maze Game using Visual Basic 2008 (Express Edition).

I got him to move, made a maze, etc but now I have to add boosts and slow downs. I've added them so that when he goes over one it'll disappear and bring the score down by 10. I also want it to slow him down for around 3 sec. What I've done is create an Integer that increases or decreases by one when he hits one of these powerups. How can I make it so that the program recognizes when this Integer is a certain value and slow him down or speeds him up?

I've tried

If e.keycode=keys.right and intspeed=1 then

but it hasn't work. Can someone help me out?
unholymist
 
Posts: 1
Joined: Thu Jan 14, 2010 12:39 am

Re: So I have to make a Pacman game...

Postby Tanzim on Thu Jan 14, 2010 4:05 pm

What happens in runtime?, make sure the integer changes when they go slow/boost..
Tanzim
 
Posts: 11
Joined: Sun Dec 27, 2009 11:22 am


Who is online

Users browsing this forum: No registered users and 4 guests