|
-
Feb 5th, 2001, 10:26 AM
#1
Thread Starter
New Member
ok i have a problem i got 2 labels 1 and enemy space ship the other a ship which you control
but when they collide i wanna point to go up on another label
how do i detect collision so that a point go's up
please explain basicly cos im only a beginner
-
Feb 5th, 2001, 11:13 AM
#2
Frenzied Member
Code:
if ship1.top < ship2.top & ship1.top > (ship2.top + ship2.height) then
if ship1.left > ship2.left & ship1.left < (ship2.left+ship2.width) then
'Collision
End if
End if
something like that should work...
-
Feb 9th, 2001, 03:09 PM
#3
Lively Member
Hey, SteveCRM...
Where did you get that avatar? It's pretty cool. Are there anymore like it?
On Error Resume Screaming...

-
Feb 9th, 2001, 03:30 PM
#4
Frenzied Member
me? I forget...someone else has the some one (but animated)...sorry
-
Feb 9th, 2001, 03:51 PM
#5
Frenzied Member
You need to use the And operator, not &, that's a different operator.
Code:
If (ship1.top < ship2.top) And (ship1.top > (ship2.top + ship2.height)) Then
If (ship1.left > ship2.left) And (ship1.left < (ship2.left+ship2.width)) Then
'Collision
End If
End If
Harry.
"From one thing, know ten thousand things."
-
Feb 9th, 2001, 04:34 PM
#6
Fanatic Member
hey i think ive seen some of those 3d animated avatars at http://animationfactory.tripod.com
-
Feb 9th, 2001, 04:37 PM
#7
Fanatic Member
-
Feb 9th, 2001, 06:09 PM
#8
Good Ol' Platypus
Invitro is the one who has the animated version.
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
|