PDA

Click to See Complete Forum and Search --> : making a game


lainuk
Feb 5th, 2001, 09:26 AM
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

SteveCRM
Feb 5th, 2001, 10:13 AM
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... ;)

DarkJedi9
Feb 9th, 2001, 02:09 PM
Where did you get that avatar? It's pretty cool. Are there anymore like it?

SteveCRM
Feb 9th, 2001, 02:30 PM
me? I forget...someone else has the some one (but animated)...sorry :)

HarryW
Feb 9th, 2001, 02:51 PM
You need to use the And operator, not &, that's a different operator.

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

MoMad
Feb 9th, 2001, 03:34 PM
hey i think ive seen some of those 3d animated avatars at http://animationfactory.tripod.com

MoMad
Feb 9th, 2001, 03:37 PM
whoa!! guess my luck, i found it:

http://animationfactory.tripod.com/af_computer_parts_variant_page_floppy_disk_walking.html

Sastraxi
Feb 9th, 2001, 05:09 PM
Invitro is the one who has the animated version.