Spawn actor with different images
I'm not quite sure how to go about doing this, basically in my game I have a character customisation and I thought, to save resources and effort I could use the same pieces of the character creator to build NPCs, So what I want to be able to do is have an actor called NPC, spawn in NpcHead, NpcHair, NpcTorso, Npc Legs, etc actors on top of it and constrain their position to that npc actor.
It works fine for the player actor, because I just have a global attribute(Which I might be changing to a table later) for each body part to say which image should be showing, but I can't really do that for NPCs if they're all the same actor.
Any help would be appreciated, thanks.
Mattcus
Best Answer
-
tatiang Posts: 11,949
My health bar demo allows you to constrain an actor to another actor and use self attributes as needed for customization:
http://forums.gamesalad.com/discussion/comment/384027/#Comment_384027
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User