|
-
Oct 11th, 2001, 10:58 AM
#1
Thread Starter
New Member
Collision Detection help!
As I've said before, I'm really REALLY new at this, so I have a quiestion or sixteen to ask.
1) What the !@$!@$! is a DC? Where can i learn to use it?
2) Okay, so I learned how to do KeyDown, KeyUp and KeyPress today. Using two images I put on a form (imgIMageToMove and imgBullseye) how do I do collision detection to tell when they slam into each other?
3) BitBlt: What is it and how do I use it?
4) Who thinks that small, fluffy sheep should be shot out of cannons? ;-)
Thanks for the help, guys and gals.
Slider Blackrose
That which does not kill me, has made it's last mistake!
 That which does not kill me has made it's last mistake!
User Error {12039}: Thought not fully formed.
-
Oct 11th, 2001, 03:14 PM
#2
Good Ol' Platypus
1) Device Context (handle = hDC), it's like a handle to the graphical representation of something (such as hWnd is a window handle).
2) Use the Intersect Rect API, give it the top, left, top + height and left + width of a picturebox to a rect structure, and the same for another picturebox. Will return 0 if they don't touch.
3) http://vbden.tripod.com/articles/invmask.htm
4) YES! Someone finally agrees with me
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|