GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Arrays or Accessing Random Items

littlewavelittlewave Posts: 1Member
edited November -1 in Working with GS (Mac)
How can I display a random Actor? I know I can get a random number, but how do I translate the number into displaying the associated Actor, if not for arrays?

Thanks

Comments

  • design219design219 Posts: 2,273Member
    Is there a tutorial for this somewhere? I need to do the same thing.
  • jault01jault01 Posts: 25Member
    What if you want the random function to call specific numbers only. For instance: 1, 3, 4, 5, 6, 9. As far as I can tell, random only lets you put a min/max number and it will pick all numbers in between. Does anyone know how toy call s a specific group of numbers randomly?
  • MankoManko Posts: 20Member
    I've been wondering about this too. It gets a bit heavy with the rules when making a new rule for every case available.
This discussion has been closed.