Professional Web Applications Themes

3d behaviour navigation help - Macromedia Director 3D

Hi all, I'm having a ton of trouble with something and I truly hope someone can help me out here... The behaviour for 3d sprites, "Click model go to marker", is just not working right when there are more than one of them. In my 3d member, I have a few different buttons that I would like the user to press and jump to a different label. If you press model 1, you jump to frame "x", if press model 2, go to framelabel "Y" etc. The problem is, it only works for one model. When I click on another ...

Sponsored Links
  1. #1

    Default 3d behaviour navigation help

    Hi all,
    I'm having a ton of trouble with something and I truly hope someone can help
    me out here...
    The behaviour for 3d sprites, "Click model go to marker", is just not working
    right when there are more than one of them.
    In my 3d member, I have a few different buttons that I would like the user to
    press and jump to a different label.
    If you press model 1, you jump to frame "x", if press model 2, go to
    framelabel "Y" etc.
    The problem is, it only works for one model. When I click on another 3d model
    in the member, it doesn't want to jump!

    My procedure is this:
    1) drop the .w3d file onto the stage
    2) drag and drop the 3d model rollover behaviour (3 of them, 1 for each model)
    3) drag and drop the ""Click model go to marker" (3 of them, 1 for each model)
    4) drag and drop the "mouse trigger" behaviour on it finally to trigger the
    jump.

    How come it only will work with one model, but not several? I'm really stumped
    and really need help :(
    Thank you..

    Sponsored Links
    dragonspoop Guest

  2. #2

    Default Re: 3d behaviour navigation help

    I think the solution is to assign a different group name to each 'click model
    go to marker behaviour', Then add 3 instances of the 'mouse trigger' behaviour,
    selecting the first, second and third group names in turn.

    I haven't used these much at all though, it seems a bit of a strange set up to
    require so many copies of the behaviours!

    hope this helps,

    - Ben


    duckets Guest

  3. #3

    Default Re: 3d behaviour navigation help

    You might be better off just using a simple custom behaviour, within which you
    can enter model names and label names into a list variable. Here's one which
    will allow you to enter as many model:label combinations as you like (attached
    below).

    Just edit the line which assigns the model names and label names. Note that
    the model names are case sensitive in this code. This single behaviour can
    replace all the copies of 'click model go to marker' behaviours you currently
    have on the 3d sprite.

    - Ben


    property jumpLabels

    on beginSprite me
    -- edit the line below to match your own "modelname":"markername" pairs
    jumpLabels = ["Box01":"label 1", "Box02":"label 2", "Sphere01":"label 3",
    "Sphere02":"label 4"]
    end

    on mouseUp me

    my = sprite(me.spritenum)
    camView = my.camera
    clickPoint = the mouseLoc - point(my.left, my.top)
    tModel = camView.modelUnderLoc(clickPoint)

    jumpLabel = jumpLabels.getaprop(tModel.name)
    if not voidp(jumpLabel) then
    go to frame jumpLabel
    end if

    end

    duckets Guest

  4. #4

    Default Re: 3d behaviour navigation help

    Wow..Thank you Ben !!! Works fantastic!
    I have another issue with sound..I'll post it now in a new thread..
    dragonspoop Guest

Similar Threads

  1. ANN: MX Navigation Pack - better recordset navigation from InterAKT
    By Alexandru COSTIN in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 0
    Last Post: December 12th, 11:10 PM
  2. URL Behaviour
    By Chris in forum ASP.NET Web Services
    Replies: 3
    Last Post: February 17th, 05:06 PM
  3. Video DVD and Behaviour on PC
    By GBK4life in forum Macromedia Director Basics
    Replies: 4
    Last Post: February 26th, 02:35 PM
  4. [PHP-DEV] header() behaviour (fwd)
    By Rasmus Lerdorf in forum PHP Development
    Replies: 0
    Last Post: October 29th, 08:18 AM
  5. Interesting behaviour of : LIKE v + '%'
    By Andrew J. Kelly in forum Microsoft SQL / MS SQL Server
    Replies: 19
    Last Post: July 14th, 08:01 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