|
-
Senior Member
Can duration-times be Variables? *Edited*
It seems like the duration-times(*edited* away from delay-times) cannot be variables, can they be? In move elements to...
E.g. http://w1.211.telia.com/~u21125134/lap1.html this is the Formula1 movie I wish to get done simplier than it's done now! It has numbers/cars that travel thrue 38 keypositions each and one lap can have 22 cars, soo there is 836 duration-times (*Edited*)for each lap and instead of programming it myself like now, I want to use variables and edit a few of those duration-times (*Edited*)with the variables...
Last edited by SirN; 04-17-2003 at 10:01 PM.
-
KoolMoves Moderator
just and idea!
How about this. make a bunch of sences each of which has a different delay. They all return to the point where you came from. then just jump to the needed scene for the delay you need.
Or use the getTimer() function and make your own delay function ..... While you can' do a delay directly in script you can use it combination with a gotoAndplay command that can take a frame or scene as a variable.
That approach would take some thought but I'm sure it could work.
You could even assign your cars a property like car1.next and assign it a future time based on timer like car1.next=getTimer()+delay then just check in an action if car1.next>=getTimer() do action.
And I for one would use an array of cars so you can do it in a loop, maybe make a seperate scene for each car update and jump to it using the same loop variable.
-
Senior Member
I'm sorry for the wrong word-use!
It seems like I used delay instead of duration, and I think we talked about 2 different things, I'm sorry about that but it's corrected in the original post now...
When I believe that we talked about 2 different things I'll have to disregard much of you reply but I find some use for it anyway,I believe that I'll have to re-think the whole deal of makeing lapreplays and begin in small scale. If not the duration-times can be variables. ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|