Hi there. I’m having a problem that sounds deceptively simply. Basically, I’m working on a turn-based, side view battle system (think Final Fantasy) where the four player-controlled characters load up on one side of the screen. Each character has a different set of sprites/animations and actions/attributes available based on the classes and abilities chosen by the player. My partner and I are having a hard time getting this to work.
We’re thinking the way to do this is through having a game object that has four instantiated objects within it. The objects would get passed information about which character they are supposed to be, and make use of a prefab for each character class’s sprite animation set. Sprites and general layout are being done with the 2D Toolkit package.
We’re having trouble correctly instantiating and referencing objects through scripts. If we could be pointed towards some example code for this situation, it would be greatly appreciated!