Text exclusion with dictionary

0 favourites
  • 3 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • Hello friend i'm learning to use Dictionary for text exclusion. Thank you in advance for reading this and may be give some advice.Let's say i have a text object called "carsOUT" which displays multiple independent text depending the users choice. I would like to record some displayed text from this object to a dictionary for example Banana,Apple,Orange. Later i would like to compare "carsOUT" text to the dictionary saved text and if the value match display something as action. So for example if "carsOUT" displays "apple" again and if the dictionary contains" apple" then trigger something. The image is just an illustration but does not work.

  • CurrentValue and "Compare current value" condition can only be used inside of "For each key" loop.

    So to check if the dictionary has "apple" you need to do this:

    Dictionary For each key
    Compare current value =carsOut.Text
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you :)

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