Image hover.. something like that

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Image hover.. something like that
Lewis
Image
All in the image...

EDIT: If this isnt possible i do have other ways..
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Hello,

Picturebox does have a function you can use for this, im not sure why it was included in VB because I cant see any other use for it apart from in games but anyway lol. Its a great way of detecting "Collisions" between pictureboxes and the function is "IntersectsWith".

Say for example your "Player" is PictureBox1 and your "Enemy" is PictureBox2 and you wanted to do something when your player hit your enemy you could use:
Code: Select all
If PictureBox1.Bounds.IntersectsWith(PictureBox2.Bounds) Then
'Do something here
End If
I hope that helps cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Image hover.. something like that
Lewis
Thankyou so much codenstuff.. Worked :)
Image
3 posts Page 1 of 1
Return to “Tutorial Requests”