Godot Version
4.2.1
Question
So I’m making an RPG where I got a combat screen that hides/shows when a new combat is triggered, then chooses a random enemy and replace the stats with the corresponding ones.
I first did it with a script that has a dictionary and went well, but can’t add functions for special behaviour. So I tried with resources, one custom resource for each enemy, then iterate the directory with dirAccess.
This worked at first but really slowed down the game.
What is the correct way of doing this?
thanks in advance