HorizontalOwl's Forum Posts

  • Hello,

    I'm making a game where the user needs to enter in 6 lettered keys that appear on the screen.

    At the moment I have 6 different text objects which show a random letter each with none repeating.

    The problem is that once I enter a key that is correct the score will go up but if you enter the 6th letter 6 times then you will be given the max score rather than entering the keys separately.

    Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.