Mark1
September 30th, 2001, 03:31 PM
Hi all,
I have a grid which is a bitmap (picture box) with a path drawn on (for a maze game). I have another picture box as a player (another bitmap). I also have 4 buttons : UP / DOWN / LEFT / RIGHT.
Each click of the button moves the player picture box by a designated amount, but what I want to be able to achieve is to be able to tell VB to grey out the UP and DOWN buttons when the path (for walking on) on the original bitmap, only runs from left to right. Otherwise the player could just walk any where on the screen!
Is it possible to do this? Any code...?
Thanks
Mark
I have a grid which is a bitmap (picture box) with a path drawn on (for a maze game). I have another picture box as a player (another bitmap). I also have 4 buttons : UP / DOWN / LEFT / RIGHT.
Each click of the button moves the player picture box by a designated amount, but what I want to be able to achieve is to be able to tell VB to grey out the UP and DOWN buttons when the path (for walking on) on the original bitmap, only runs from left to right. Otherwise the player could just walk any where on the screen!
Is it possible to do this? Any code...?
Thanks
Mark