ulysses 31's Recent Forum Activity

  • Did you mean that there is a capx on this thread? If so could you please point me in the right direction to it.

    Much appreciated, thanks.

  • Hello,

    I have 6 sprites which are identical apart from the UID. They represent all the lettered keys on the keyboard by selecting a random frame of 26.

    So each sprite shows a random key out of 26 choices.

    The problem I have is that the sprites can easily have the same letter showing, which I can't let happen. For example two sprites show the 'A' letter.

    I have got all the different frames in an array with setting...

    Array Value at 0 = "A"

    and then setting a global variable called 'keys' with...

    System Set keys to Array.At(0)

    So how do I go about getting a solution to something like this...

    If animation frame 0 == animation frame 0 then repeat random selection until nothing of the six sprites matches.

    I've started to pull my hair out so if you solve this I will be forever grateful.

    Thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello,

    I have a game where I have one sprite representing all the lettered keys on the keyboard. I set animation frame to random(0,25).

    The sprite is copied and pasted so there are 6 keys with the same name but different UID's.

    This works fine but most of the time a letter is repeated and I don't want that.

    I cannot make more key sprites as this would mean that I would have to do a lot of code for each sprite.

    Any ideas?

    Thanks.

ulysses 31's avatar

ulysses 31

Member since 12 Aug, 2013

None one is following ulysses 31 yet!

Trophy Case

  • 11-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies