Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8930

Spawning actors of different values

$
0
0

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?


Viewing all articles
Browse latest Browse all 8930

Trending Articles