Professional Web Applications Themes

Collision Detection - Then Go To Next Frame - Macromedia Director 3D

Hello, I've just gotten the collision detection working on my coursework but I havent been able to get the movie to jump to another frame on collision. This is what my problem is - I cant seem to use Go to "Movie1" in the on handle me, collisionData handler. For some reason it wont let me SO I tried calling another handler with the statement, moviejump = true. This also has not worked - any pointers please? Thanks for any help!...

Sponsored Links
  1. #1

    Default Collision Detection - Then Go To Next Frame

    Hello,
    I've just gotten the collision detection working on my coursework but I havent
    been able to get the movie to jump to another frame on collision. This is what
    my problem is - I cant seem to use Go to "Movie1" in the on handle me,
    collisionData handler. For some reason it wont let me SO I tried calling
    another handler with the statement, moviejump = true. This also has not worked
    - any pointers please? Thanks for any help!


    Sponsored Links
    mbrown174 Guest

  2. #2

    Default Re: Collision Detection - Then Go To Next Frame

    It may be that you aren't permitted to navigate from a collision
    callback. Try setting a timeout and navigate when /it/ calls back.
    Sean Guest

  3. #3

    Default Re: Collision Detection - Then Go To Next Frame

    Hello - thanks for the help but I still havent got it working. I tried a
    timeout like you suggested but it kept saying that the Handler was undefined.
    Here is the code I used...

    on handle me, collisionData
    set the timeOutLength to 1 * 60
    set the timeOutScript to "resetMovie"
    end

    on resetMovie
    _movie.go("Tour2")
    end

    Id really appreciate any other ideas or help! Thanks in advance.

    mbrown174 Guest

  4. #4

    Default Re: Collision Detection - Then Go To Next Frame

    Sorry I changed the syntax here, but it still isnt working. Is there something Im missing?
    on resetMovie
    go to frame 3
    end
    mbrown174 Guest

  5. #5

    Default Re: Collision Detection - Then Go To Next Frame

    Just set a variable within your collision handler (a global variable would be
    easiest), which indicates that a frame jump is required. eg:

    on handle me, collisionData
    frameJump = true
    end

    Then, during your exitFrame script, check whether that variable has been set:

    on exitFrame me
    if frameJump then
    go to frame 3
    end if
    end


    - Ben


    duckets Guest

  6. #6

    Default Re: Collision Detection - Then Go To Next Frame

    Thanks - worked like a charm. Dont know why it didnt work the first time though. Thanks for all the help guys!!!
    mbrown174 Guest

Similar Threads

  1. collision detection
    By Seph webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 18
    Last Post: May 20th, 09:24 AM
  2. collision detection in havok?
    By mk0505 in forum Macromedia Director 3D
    Replies: 3
    Last Post: April 15th, 02:12 PM
  3. Collision Detection and Jumping to Another Frame
    By Lorax2003 in forum Macromedia Director 3D
    Replies: 2
    Last Post: June 28th, 12:45 PM
  4. 3d collision detection
    By needhelp2005 in forum Macromedia Director 3D
    Replies: 0
    Last Post: May 9th, 10:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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