-
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
-
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... ;)
-
Hey, SteveCRM...
Where did you get that avatar? It's pretty cool. Are there anymore like it?
-
me? I forget...someone else has the some one (but animated)...sorry :)
-
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
-
hey i think ive seen some of those 3d animated avatars at http://animationfactory.tripod.com
-
-
Invitro is the one who has the animated version.