Skip to main content

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

Mmmh.

Just looking for an advice.

Is it better to: 

a. keep one state script by script ressource.
b. make state as function and group them in one script ressources by character
?

I have one script resource per character with a function for each state in said script resource.
There is also another script resource with shared common state functions that all state code can access.