how to spawn randomly

sup
kinda know a bit bout gamesalad, just cant remember how or if you can spawn an actor randomly.
for example, if an enemy dies i want it so theres a (random) chance that a random powerup will spawn.
thnx

Comments

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,060

    Yes

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Google spawn random actor gamesalad

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,060

    You can use the random(1,2) and set attribute to set a global attribute.
    Then, you can use a rule that only spawns if that attribute = 1.

Sign In or Register to comment.