Before you begin
Save an enemy asset with animation sequences in Sprite Studio.
Build it step by step
Open Draw / replace picture and create or inspect animation sequences for the enemy. Preview them before saving.
Select the enemy and open Configure enemy → States and animations.
For each available behaviour phase, choose a State name from the artwork’s named states and a Frame animation from its saved sequences.
Use looping sequences for idle, patrol and chase. Notice, attack, hurt and defeat are played once by the enemy controller.
Press Play and provoke each state. Use live properties to observe Enemy state. Optional IF property rules can play a built-in effect or sound for a named state.
Practical example
A guard turns red with a Flash effect when its named Enemy state becomes Attack. The state label comes from its configured mapping.
Test your work
Animation matches behaviour; the chase loop continues smoothly until another state takes over.
If it does not work
Explicit Play animation rules take priority while active. Remove conflicting animation rules if the controller’s mapping seems ignored. Empty state mappings leave the text blank.
Student challenge
Add a distinct warning pose that makes an enemy attack easier to read.
Show the result to a partner. Explain what you changed and how you tested it.
