Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Game

Status
Not open for further replies.

rbarberi

Programmer
Jan 21, 2002
4
US
Hello,

My name is Roy, I made a PictureBox move across the screen. Do any of you know how to make the PictureBox stop moving when it gets to another PictureBox, and change the Picture in the other PictureBox at the same time?
 
Hi rbarberi,
You mean something like this?

'if Picture1 is moving left to right
If (Picture1.Left + Picture1.Width) = Picture2.Left Then
'stop moving the Picture1
Picture1.Picture = Picture2.Picture
End If

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top