ForumsProgramming ForumMultiple Actions!?

6 2678
mystera
offline
mystera
39 posts
Nomad

Is it possible to put the same actions on multiple keyframes at one time? I don't like copying and pasting for 100 keyframes! Please help!?!

  • 6 Replies
dank
offline
dank
983 posts
Peasant

You can make a function, create an eventlistener, or loop it. It really depends on what you're doing.

mystera
offline
mystera
39 posts
Nomad

Like if I want the action stop(); for 100 frames on the same layer, how whould I do that?

PixelSmash
offline
PixelSmash
566 posts
Nomad

I think by selecting, copying and reselecting (etc, etc) you could do that... like dank said, doing one of those things would be best. No need to have lots of code on your timeline if you don't need it

Fighterlegend
offline
Fighterlegend
44 posts
Nomad

Well, if you want Stop(); for 100 keyframes, you don't need the same layer.

You could use one that has one keyframe..

Then stretch it out to 100 by adding other frames and putting a stop(); code on that layer.

Works everytime.

mystera
offline
mystera
39 posts
Nomad

But what if I did a code that makes Random Numbers...I tried your way, but the numbers stayed the same.

Fighterlegend
offline
Fighterlegend
44 posts
Nomad

Ohh, I don't know then.

You'll just need a variable that is random:

var randomVar = Random(100); I think

Showing 1-6 of 6