Random that doesn't repeat

kkaramaniankkaramanian Member Posts: 5
edited November -1 in Working with GS (Mac)
I am in the process of trying to create a learn to speak english app.

I have ten actors on a screen. There is an audio prompt for the actor, which the user hears and then clicks the correct actor.

So far so good - however I would like the order that the audio prompts come in to be random. I have applied a random integer to the game and then each actor is a number from 1-10.

But how do I get it not to repeat the same number twice?

I have tried changing the random attribute when the same number is called (and has already been "pressed"). And it works fine at the beginning but when you get down to the last few numbers it freezes.

Any help on this would be much appreciated.

thanks

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I think gshelper.com has a template. Not sure if it's free or not.
  • kkaramaniankkaramanian Member Posts: 5
    ok I kind of understand that so thank you - but I must be a little dense - cause I can't make it work without the timer.

    What I mean is that rather than triggering the change attribute on 0 sec. is there a way to trigger it on an event Like a change in game score -

    When I tried to do this it didn't work?

    any help much appreciated.
  • kkaramaniankkaramanian Member Posts: 5
    sorted it - thanks for the sample -
Sign In or Register to comment.