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

  1. #1

    Default motion

    hi. I have a problem about motion demand on time. I want to move a matter as functions of time. for istance a matter has motion according to x=5t2( square of time) which code I should use. is there a time variable in lingo. theres a variable such as"systemseconds" in authorware. thanks your suggestions


    mrzsbsky webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. sub motion
      hi, i have a prob. im new 2 lingo, thats the 1st prob. the 2nd is i cant understand how to use sub motions properly. im basically trying to create...
    2. Add simple motion
      I want to add a simple motion effect that transport something from a place to another within the stage. Can someone help me please?
    3. can we do motion in PS css?
      I'm trying to make my web site a bit more dianamic and I saw that I can do animation, rollover. My question is: it possible to do motion like, as...
    4. Motion Tween - need help
      I have created several motion tweens in my .fla all using the same symbol. At the beginning and ending keyframes, the changes to the symbol are...
    5. Motion Blur
      Hi, Using Firework MX. How can i do motion blur on my layers ? It is bultin filter in photoshop so i can't take it from there and add it to...
  3. #2

    Default Re: motion

    On 6/8/03 2:53 AM, in article bgondh$kfa$1@forums.macromedia.com, "mrzsbsky"
    <webforumsuser@macromedia.com> wrote:
    > hi. I have a problem about motion demand on time. I want to move a matter as
    > functions of time. for istance a matter has motion according to x=5t2( square
    > of time) which code I should use. is there a time variable in lingo. theres a
    > variable such as"systemseconds" in authorware. thanks your suggestions

    Assuming you want to calculate the time between each 'step', then you could
    do something like this:

    Property myLastStep

    On beginSprite (me)
    MyLastStep = the milliseconds
    end

    On exitframe (me)
    t = the milliseconds - MyLastStep
    X = 5 * power(t, 2)
    end

    > But I'm not sure if squaring the milliseconds will give you an overflow.
    > Another math wiz will have to answer that one.
    Because of the potential for overflow, Director seems to convert integers to
    a floats before doing the calculation (ie power always returns a float).
    Same as exp(), log() etc

    Luke


    --------------------------------
    | [url]www.meccamedialight.com.au[/url] |
    | [url]www.lingoworkshop.com[/url] |
    --------------------------------

    LukeWig 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