Welcome to Dream.In.Code
Become a VB Expert!

Join 149,427 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,271 people online right now. Registration is fast and FREE... Join Now!




collision problem

 
Reply to this topicStart new topic

collision problem, i can hit somthing 2 miles away ?!

RETNE
22 Jan, 2008 - 07:11 PM
Post #1

New D.I.C Head
*

Joined: 17 Nov, 2007
Posts: 22


My Contributions
im trying to get it so that when 1 pic touches the other it beeps but from the bigging it wont stop beeping





CODE
For b = 0 To 4
If PIC3(B).Left > pic1.Left - Width And PIC3(B).Left < pic1.Left Or PIC3(B).Left > pic2.Left - Width And PIC3(B).Left < pic2.Left And PIC3(B).Top > pic1.Top - Height And PIC3(B).Top < pic1.Top Or PIC3(B).Top > pic2.Top - Height And PIC3(B).Top < pic2.Top Then
    beep
End If
Next b



any suggestions

This post has been edited by jayman9: 23 Jan, 2008 - 12:27 AM
User is offlineProfile CardPM
+Quote Post

Nayana
RE: Collision Problem
22 Jan, 2008 - 11:49 PM
Post #2

DIC Hawk - 나야나 नयन:
Group Icon

Joined: 14 Nov, 2007
Posts: 824



Thanked: 5 times
Dream Kudos: 175
My Contributions
Please code.gif so that I can read it, thanks.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 11:26AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month