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.
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
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:
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
I hope that helps cooll;If PictureBox1.Bounds.IntersectsWith(PictureBox2.Bounds) Then
'Do something here
End If
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023