More options in "compare text"

0 favourites
  • 5 posts
From the Asset Store
Shatter
$2.49 USD
Shatter effect, with parameters for crack size with an option for crack region and crack animation.
  • I'm using "compare text" with "textbox" and everything is perfect, when the player enters confirms that he is right or not.

    My problem is that I need to add more options to the "comapre text".

    For example the right answer is ball, however the player may end up putting "Ball" or "BALL".

    I need my "compare text" accepted more than one option as "ball", "Ball", "BALL".

    I believe that with a simple code phrase I can solve this, I've searched but have not had success.

    I appreciate the patience with a beginner.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You will need to use a System: Compare Two Values condition to compare the values. Then use the System.uppercase function, like so:

    <img src="https://dl.dropbox.com/u/38038537/pictures/SystemCompare.png" border="0" />

    Text.Text is the text value from your text object.

  • Thank you, I will try now.

    But is there any way to do it that way. (pic related)

    Uploaded with ImageShack.us

  • Oh yeah, I forgot about the text compare in the object. <img src="smileys/smiley9.gif" border="0" align="middle" />

    Then just do this:

    <img src="https://dl.dropbox.com/u/38038537/pictures/TextCompare.png" border="0" />

    Using Ignore Case will get you the same results as my previous post.

  • Thank you, helped me a lot.

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