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?


