ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Command array (Wishlist)
Command array // WishlistsweAug 30, 2004, 11:51pm
wish it were possible to have like a list of commands, which happen one
after the other, like, first it rotates 90 degrees, then when thats done it then moves say 5m forwards, and then when thats done, it moves 5m up. would make for some pretty cool animation looking things. not sure if it's possible to do it with that whole astart astop thing, but couldn't figure out how to use them commands :) -SWE ferruccioAug 31, 2004, 12:40am
You can do just about anything with AAA commands, even a playable chess game
(as roadkill pointed out) lightwaveAug 31, 2004, 4:48pm
to get some thing to look like its moving in a circle
--move in circle arange objects 2 clicks apart (i think) {m3}>{m4} /\ \/ {m2}<{m1} [object that moves clockwise] create name m1,visible no [moves -X] create name m2,visible no [moves up Y] create name m3,visible no [moves +X] create name m4,visible no [moves down Y] [controll objects] create name e1,animate me . 1 1 1000,astart;adone move -1 0 0 name=m1,visible m1 on,visible m4 no,astart e2 create name e2,animate me . 1 1 1000,astart;adone move 0 1 0 name=m2,visible m2 on,visible m1 no,astart e3 create name e3,animate me . 1 1 1000,astart;adone move 1 0 0 name=m3,visible m3 on,visible m2 no,astart e4 create name e4,animate me . 1 1 1000,astart;adone move 0 -1 0 name=m4,visible m4 on,visible m3 no,astart e1 [View Quote] sw comitAug 31, 2004, 10:25pm
One problem there - you have all 4 control objects astart. You need e1 to
be astart, and the rest to be astop. An alternative way is to name all the control objects the same, and then change the delay. Like have them all named e1...then the first one is 1 1 1000 then another e1 object with 1 1 2000 then 1 1 3000 and so on. With one master control object that would start and stop e1 as desired. [View Quote] lightwaveSep 1, 2004, 4:25am
hmmm your right, it does work the way it is
but it would be better the way you said :) -Lightwave [View Quote] johnfSep 1, 2004, 2:56pm
Wouldn't something be better like:
create seq seqID=1 order=1 [next=2]; seq [commands] then the next object is create seq seqID=1 order=2 next=1 wait=4; seq [commands] That starts a sequence called 1 (or abc, etc.) Order informs the browser that it is number X in the sequence Next is taken to be Order+1 as default. Seq is similar to create but only starts when the object's position in the sequence is called. Wait tells the browser to wait before continuing to the next point in the sequence. Fine, I know this can be done with astart, astop and adone - but wouldn't this be a much simpler method? I've never got the hang of those commands myself and think it would be far simpler if it were done this way. John [View Quote] disembodiedSep 4, 2004, 1:24am
To create a sequence of motions with Astart Astop, you must have a new
instance of the object at each stage of its motion... essentially having one object move to certain coordinates where it lines up with a second instance, switches off and switches the new instance on, where the new instance executes an action. It may be horribly inefficient, but it's still possible. If you like, T-gram me and I'll show you what I mean ^_^ [View Quote] |