00:00
00:00
LewToons
AWWWW shit son...

Age 36, Male

Student

Iowa State University

Edina, MN

Joined on 8/19/08

Level:
16
Exp Points:
2,624 / 2,840
Exp Rank:
23,095
Vote Power:
5.79 votes
Rank:
Police Officer
Global Rank:
16,647
Blams:
109
Saves:
486
B/P Bonus:
10%
Whistle:
Normal
Trophies:
36
Medals:
705
Supporter:
11m 30d
Gear:
4

Staggering movie clips

Posted by LewToons - November 6th, 2010


i have a feeling there is a pretty simple solution to this problem but i'm having a hard time phrasing it in a google search.

+++

so lets say i want to have a group of identical soldiers walking. so i make my one movie clip of one soldier in a walk loop. then repeat it out like 20 times.

but then all the soldiers are stepping in complete synchronization (which could be good if thats the effect you wanted. )

but what if i want them to look like they are all walking in their own rhythms -

ideally i could stagger the movie clips somehow, altering the various times at which the legs walk about.

i realize i could make each soldier his own movie clip and go in and change it myself but...im lazy.

any tips? (im sure someone out there knows an easy way to do this)

+++

upcoming projects:

- Salem 6 (game with Tarienn, Shadowfox2, and Seething swarm )
-The Dream Diver (my first serious, legitimate BIG project since Picos bro
-Oneys bday bash - -yay!
[shoot me a pm if u want any voice work done also]


Comments

Had that problem myself, i usually end up duplicating the clip and adding in some extra frames or taking some out to make around 5 variations. You could re-align all the keyframes to make the walk cycles start at different points, but thats a pain in the arse.

Change them to graphics and use the properties panel to have them start their loops on different frames
OR

just make a few copies of the soldiers, right click one at a time and press "duplicate symbol", you'll change the name and then just move the frames around so they loop differently

hmmm option one sounds like a good plan

Have a code that loops through their walking speed via a variable that you assign them.

Or something like that I dunno.

yikes that sounds like a lot of work!

the bash is a surprise ya big dumby

Animators using "movie" clips instead of "graphic" clips should all be thrown into a pile, doused with gasoline and lit on fire.

Gerkinman should be used as the ignition fire.

haha i am a bit of a noob when it comes to animating - i admit

I'm with JordanD. Easiest way is to make 'em into graphics then go to properties and just change the starting frame of each loop to what you want.

some script in the main timeline, using a for loop you iterate through all the targeted movie clips one by one and tell each of them to go to a random frame in their respective timelines.

Well, it really depends what are you working on, a game or a movie?

If it's a movie, set all instances of the movieclip to graphics and set them to loop with different starting frames.

if it's a game, just have them start at a random frame upon initialization.

I got to agree with PIGPEN, when it comes to animation, graphics are way better then MovieClip, especially since the most code you'll probably have is the preloader.

Use MovieClips when you want your Movie to be a bit more dynamic.

What about effects vs code, though? I make everything a movie clip so that I can apply filtering directly. Incidentally, it tends to look a lot better than if I had inserted them as graphics and other than the option of being able to apply an effect, the finished SWF doesn't make a distinction.
Again, unless you're doing something that involves code, but that I wouldn't really know about.
So to that effect RedHarvest, yeah, if you're not worried about using any filters and want to stagger them, JordanD's first suggestion would probably be easiest, though duplicating the symbols and making them very would be only slightly more work and would allow you to use filters if you were wanting to do that.

TL;DR - JordanD FTW

I feel like this might at least give a similar effect to what you're going for:

onClipEvent(load){
this.gotoAndPlay(random(50));
//replace 50 with the number of frames in the walking animation
}

You might be one of those logical people who doesn't put code into movie clips, so that code might have to be altered slightly if that is the case.
Or you might not want to use code at all, in which case everyone else's suggestions are better.

I bet this guy would know
<a href="http://www.newgrounds.com/portal/view/516086">http://www.newgrounds.com/portal/view /516086</a>

that clip is amazing, I'm sure you've seen it. But maybe you should ask him.

I'd just duplicate the movieclip a bunch of times.. And switch the frame order so they loop with different starting points..

put them in looping graphics as opposed to movie clips and have them start on different frames

Place this on the movie clips

onClipEvent(load){
gotoAndPlay(Math.random(**how ever many frames are in your walk cycle**) + 1);
}

NOTE: The reason you +1 is because 0 is a possible integer that Math.random brings up!

Oops! Just realized JonBro left the same bit of advice! haha sorry!

all is forgiven

You can choose what frame to start on if it's a graphic. If your movie clip has no sound inside of it.. it should be a graphic instead.

Properties
"Graphic"
"Loop"
"First?: " Here you put your frame for that particular graphic to begin on

as long as that graphic has timeline to work with then you shouldnt have issues