Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

ActorSprite is a scene that handles the visual aspects of actors (characters, monsters, animals, etc.). The idea is to centralize visual elements, such as shadows and various effects like damage indicators or shake.

I wrote this code a long time ago and might approach it differently today, but generally speaking, I find it practical to separate the visual component from the logic, especially when there are many "actors" (for instance, it makes it easy to assign any character to the same entity).