Enter Initials help

0 favourites
  • 5 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hello, having some trouble here.

    I'm trying to create an "Enter Initials" dialogue. I can get it to increment through the alphabet once, but it doesn't continue to increment!

    Every time I click the arrow, I want it to increment the alphabet, example ( click arrow, set text A, click arrow, set text B, etc )

    In my example, it increments just once, then never increments again.. So I click the arrow it goes to Z, then it doesn't increment when I click anymore.

    Any help is greatly appreciated.

  • You might have to reset your index at the end of the alphabet for it to "loop."

  • Thank you for the response, I'm not sure I understand how to do that, here's an example of whats happening.

    I would like it to continue, rather than halting completely at Z, or 26, the end index.

    So it kinda works, halfway there! Any suggestions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I do not understand the loop you make.

    Just use a variable 'position'.

    The character is now mid(alphabet,position,1)

    Add 1 to postion on every click on the right arrow

    Substract 1 to postion on every click on the left arrow

    if position < 0 set postion to 26

    if postion > 26 set position to zero

    Your loop always ends on the 'Z', it loops them all on every click on the arrow and on every click on the arrow it ends on the Z.

  • Thanks for the reply, that looks like a good solution, thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)