How to pause a clip using code?

if I made an animation and I don’t want it to play when the character isn’t moving, and instead stick to 1 frame.

how would I do this?

is this even possible?

please answer this, this is the second time I’ve had to ask this because no one answered last time.

Yes, this is possible.

To make a clip’s animation not move, use this: " clipName.stop(); " (replace clipName with the name of the clip)

You can also replace “stop()” with one of the following:

  • play()
  • gotoNextFrame()
  • gotoPrevFrame()
  • gotoAndPlay(#) // Replace # with a frame number
  • gotoAndStop(#) // Replace # with a frame number

What I just shared is how to pause, play, and change the frame of a clip (character).
If you need help with using these in a project, you can send me a copy of your wick file here and I’ll show you how to add it to the code.

2 Likes

thank you! it worked!

1 Like