Ask a Question related to Macromedia Director 3D, Design and Development.
Collision of two objects goto frame or marker.
Here is the scenario.
A W3D file with two objects loaded into director MX.
Object 1 is a child of the default camera and moves with the camera.
Object 2 is a moving object that moves.
The problem is to resolve a collision between the two objects.
When object 1 collides with object 2 have the play head go to a frame or
How the code would be written to accomplish this.
I'm a beginner in director (using director mx trial) I have many quicktime video to play one after the other with that : on exitFrame me if...
Hi, What am I doing wrong this time? I try to load a movie into a placeholder and goto the first frame of the second scene. var layout =...
i have made a movie in which there are frames and the beginning of the frame or the first frame i have given stop statement such that the movie does...
is it possible to get the marker name when knowing the frame number it is on ? i need to know the last markers before my currunt frame so far...
just a quick one, I am very tired and have forgotten the command for goto marker on mouseUp goto "quit" -- or am i really asleep end I...
Re: Collision of two objects goto frame or marker.
You can use the collision modifier on the two models. It gets a little
complicated, so you should check out the HELP. I haven't used it often, but the
basic procedure is to yourmodel.addmodifier(#collision) to both your models,
yourscene.registerForEvent(#collideAny, <handlername>, <script object>,
<optional params>) so you can get the collision event when it happens, and then
simply _movie.go("somemarker") when the event occurs. You should set the
yourmodel.collision properties appropriately, probably #enabled = TRUE,
#resolve = FALSE, #immovable = FALSE and #mode = #box.