Can you use one node for an enemy and pull variables from json to make them unique?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GarretteA

For lack of a better way to explain, I am thinking in the direction of Pokemon. In the end I will have a bunch of enemies, and the thought of making a new scene for each one is terrifying. Is it possible to use just one scene, instance it when chosen for battle, and then change the values/sprite on the fly?

It sounds difficult, and I am probably making it too difficult on myself, but I can’t seem to logically think of an answer myself.

:bust_in_silhouette: Reply From: citizenl

Optimization is usually last, performance should be good in most cases, if you want to know how to optimize a lot of rendering, here is a reference. check it