Professional Web Applications Themes

motion - Macromedia Director Lingo

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...

  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. #2

    Default Re: motion

    On 6/8/03 2:53 AM, in article bgondh$kfa$1forums.macromedia.com, "mrzsbsky"
    <webforumsusermacromedia.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

Similar Threads

  1. sub motion
    By deanUK in forum Macromedia Director 3D
    Replies: 1
    Last Post: June 20th, 09:12 PM
  2. can we do motion in PS css?
    By r. shefer in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 24
    Last Post: May 11th, 09:59 PM
  3. Motion Glare?
    By cVarz in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: April 14th, 04:28 AM
  4. HELP! - containing random motion
    By jolty in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 22nd, 08:39 PM
  5. Guide motion using AS?
    By FayeC in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: January 29th, 05:47 AM

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