Spawning actors of different values

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

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    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.

  • IntellimigentIntellimigent Member, PRO Posts: 8

    Thanks Nipa, learned me something new to day :smile:

Sign In or Register to comment.