Results 1 to 8 of 8

Thread: making a game

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    12

    Talking

    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

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    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...

  3. #3
    Lively Member
    Join Date
    Jun 2000
    Posts
    124

    Hey, SteveCRM...

    Where did you get that avatar? It's pretty cool. Are there anymore like it?
    On Error Resume Screaming...

  4. #4
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    me? I forget...someone else has the some one (but animated)...sorry

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  6. #6
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    hey i think ive seen some of those 3d animated avatars at http://animationfactory.tripod.com
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  7. #7
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    whoa!! guess my luck, i found it:

    http://animationfactory.tripod.com/a...k_walking.html
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  8. #8
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
  •  



Click Here to Expand Forum to Full Width