Page 1 of 1
Put different actors in one group
Posted:
Sat Nov 10, 2012 6:20 pm
by NightOfHorror
I am making a Dodge-ball game, and there may be more than hundred different people. They all have one of the eight templates, one being specifically only for females, but I wanted to give each person their respective stats. The problem is that is more than a hundred different people to code, so I wanted to know if there is any different ways of doing it, that makes it faster, but gives each person their own stats. I got an idea, except then people would be not different from one another; there would be groups that each group has the same stats with each other.
Re: Put different actors in one group
Posted:
Sun Nov 11, 2012 10:06 am
by skydereign
You should probably use a single actor for the players. Linking them can be done with variables, and you can use this to make them interact differently by type and index. If you want them to all have their own unique stats, than you will have to write out the values yourself.
Re: Put different actors in one group
Posted:
Mon Nov 12, 2012 1:21 am
by NightOfHorror
Thanks skydereign.
Re: Put different actors in one group
Posted:
Sun May 19, 2013 1:00 am
by ESL
I see what you mean about using one actor with different animations. How do you use separate animations for the actor within the game?
Re: Put different actors in one group
Posted:
Sun May 19, 2013 1:09 am
by skydereign
ESL wrote:How do you use separate animations for the actor within the game?
Umm... you add multiple animations, and use ChangeAnimation to change to the one you want it to be.
Re: Put different actors in one group
Posted:
Sun May 19, 2013 1:47 am
by ESL
OK, you can have the same actor on screen simultaneously doing multiple animations?
Re: Put different actors in one group
Posted:
Sun May 19, 2013 1:53 am
by skydereign
ESL wrote:OK, you can have the same actor on screen simultaneously doing multiple animations?
You can't have two animations for a single clone. But, you can have multiple clones of the same actor, each with a different animation.
Re: Put different actors in one group
Posted:
Sun May 19, 2013 4:54 am
by NightOfHorror
I forgot all about this. Maybe I should pick it up again, but then again, the real life tournament never happened. Not much really to do.