Rivals of Aether

Rivals of Aether

Jigglypuff
 This topic has been pinned, so it's probably important
FelixBlobDev  [developer] 11 Aug, 2023 @ 12:54pm
Sleep Animation Compatibility Guide
Jigglypuff's sleep status effect features compatibility you can add to your character, if you'd like them to use a specific animation (like a custom sleep animation).
This is completely optional of course, but if you're a workshop creator and you're interested in improving how Sleep affects your character, then I've explained how to do this below!

Main Variables
Sleep compatibility is very simple, so I've just explained the main variables here. All you need to do for this is put these in your init.gml file.
  • kob_sleep_sprite - The sprite for your sleep animation. Can be animated. For example: kob_sleep_sprite = sprite_get("sleep");
  • kob_sleep_sprite_air - Same as above, but for the air. Optional.

Other variables
These are optional, but can let you do more stuff!
  • kob_sleep - This will be true while your character is asleep. Useful for detecting when you're asleep and not, such as in update.gml.
  • kob_sleep_sfx - Set to true when your character falls asleep. For example, you can play a sound when this becomes true, and then set it back to false, giving your character a special sleep sound!