all I want to know is what is the easyist way to move an image on my form?
then how do I tell if it 'hits' something?
thanks
Printable View
all I want to know is what is the easyist way to move an image on my form?
then how do I tell if it 'hits' something?
thanks
To move the picture box you could put these in a timer. To start/stop it Enable/Disable the timer. To change the speed change the interval of the timer
'Move Up:
Picture1.Top = Picture1.Top - 10
'Move Down:
Picture1.Top = Picture1.Top + 10
'Move Left:
Picture1.Left = Picture1.Left - 10
'Move Right:
Picture1.Left = Picture1.Left + 10
You could use combonations of these, and change the 10 to make the picture move in different angles.
There are TONS of collision detection threads...do a search for them...I've replied to most. :D