

This block lets you skip around an animation or reset an animation to its starting frame. This is only useful for animations that aren't set to loop. Returns true if the current animation is still playing, otherwise it returns false. Note that this returns the animation, not the textual name of the animation. This block returns the animation that is currently playing. Instead, use the "as animation" block and type the name into that. Note: Do not type in the animation name directly. This block switches the actor's animation to the one you specify. Switching AnimationsĪll of these blocks are found under Actor > Drawing.
#Stencyl characters how to#
We cover how to define Collision Bounds in our Collisions article. There, you will be able to edit your Animation's Collision Bounds on a per-animation basis. To define Collision Bounds, flip to the "Collisions" page of the Actor Editor. By default, we use an image editor that we bundle in, but you can set it to any app you like, such as Photoshop, GIMP or Paint.NET. Note: You set the External Editor from Stencyl's Preferences dialog. Then, click the Edit Image button to open it up an external editor. This is useful for making small tweaks to the graphics, without having to re-import the whole animation.ĭouble-click a frame's box to bring up its edit dialog. Individual animation frames can be edited in an external editor. To edit multiple frame durations at a time, select multiple frames (using SHIFT or CTRL/Command) and click Edit Frame in the bar below. Double-click each frame's box to edit the duration.

By default, this is set to the center point.Įvery frame can be given a different duration (in milliseconds). The origin point is used to determine the point by which an actor rotates or scales. Origin PointĪn Animation can also have a designated origin point. Have you noticed that their animations always look the same no matter what? If this weren't the case, it would look disconcerting. To put this more concretely, think about the coins in a Mario game. Synchronized animations will animate in at the same time as each other. Looping?įrames can be set to loop or play through just once. Now that you've imported an image, you'll see its details, We'll step through what each part means.Įach animation state is given a name, which you use when you want to switch animations.
