Creating animated sprites
Before we get started you need at least a couple of
.tga images for the animated sprite.
When you have your image files prepared, we need to create a
.mks file describes how our animation should display our images.
- Create an
.mksfile in the same place as your
- Populate it with the following snippet.
- Replace the
a_circle_00X.pngvalues, with the name of your image files.
- Add or remove frames depending on how many images that are in your animation.
.mksfiles you can read the Valve documentation
- Now that we have our
.mksfile prepared, we need to link to it in a
.vtexfile, so we can use it in the Sprite Renderer. If you do not know how to create a
.vtexfile, follow this wiki page: Using custom sprites
- Select your new sprite in the
materialproperty on the Sprite Renderer
- Increase the
animation rateproperty on the Sprite Renderer
Congratulations! You have just created and used your first animated sprite in the Particle Editor!
Example of an animated sprite