Spawning actors of different values
Intellimigent
Member, PRO Posts: 8
Hi all, I'm just getting into GS and have been running into some issues.
I'm trying to give my actors random number values that are displayed on top of the actors.
I create a game attribute -> integer -> actorValue = 0
then I have actors spawned with the following:
change attribute -> game.actorValue + random(1,9)
display text -> game.actorValue
The issue is that all of the actors display the same random values (which I can see why now).
How can I spawn them so that all of them have randomized values?
Comments
Have the ActorValue as a self.attribute in the actor. That way when the actor is spawned, it will change it´s own attribute and display it.
Mental Donkey Games
Website - Facebook - Twitter
Thanks Nipa, learned me something new to day