Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default object collision

    hello folks,

    I'm relatively new to lingo and director. Im in the process of creating a simple game where you have to push an bubble around a maze with your cursor. I need help with object collision detection.

    Essentially I would like to be able to tell when the object your pushing round comes in contact with part of the maze or an obstacle within the maze (which will be just another cast member). When this collision occurs, the user loses a life (1 of three) and the level is reset.

    I guess ideally I could put this script on the bubble cast member?

    Also I need a seperate scipt that advances the game to the next level (loads a new director file) when the bubble comes in contact with a certain cast member.

    Any help appreciated greatly.

    dw


    unfrequented webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. 3D: Collision
      Anyone know of a way to do a collision detection (Shockwave 3D) at a particular time. just once. i.e. run some command or set of commands that...
    2. JRE Collision
      Hello all. system developer edition: CF MX7 os: win 2003 java version: 1.5.0_04 default settings for all cf installation options I'm...
    3. if collision then?
      is there any such script? i want to go to a specific frame when my model collides with anotherm is that possible?
    4. object leave the collision
      hi, in 3D, i can use the collision to check the object hit the zone.....(zone = 1) but, how can i detect the 3d object "leave" a collision?...
    5. collision
      i have imported a 3D scene W3D exported from 3Dmax in the scene i have objects and groups, when i resolve collisions for objects it works fine,...
  3. #2

    Default Re: object collision

    You need to test for colision of your mover and each possible obstacle
    each increment of motion eith in the script that's moving things, or if
    using simple moveable sprite property have a score script test all
    possible collisions each frame advance ( on prepareFrame)


    from lingo menu"

    if sprite sprite1 intersects sprite2 then


    The ink setting effects the detected areas ( I believe) most inks detect
    overlap of sprite rects, setting matte ink better detects irregular
    shape boundary.


    for a not outside of container test

    if not sprite sprite1 within sprite2
    JB Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139