Spawning random actors in game
MadCursor
Member Posts: 15
Hi everyone! Does anybody know, how to spawn random actors from/in one point in GameSalad? Please help!
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
If you don't mind them repeating, just use a timer set to every 3 seconds and in the timer place a change attribute behavior and select an integer attribute. In the expression editor for that behavior, add random(1,5). Below that, add a rule for each possible value of the attribute:
When game.choice = 1
Spawn actor [actor name]
When game.choice=2
Spawn actor [another actor name]
Etc.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User