Text input and Layer issues

How do I…

I am trying to create a fake search engine for my game that only accepts certain sites using layers.

What is the expected result

Type in the name of the site, press the search button at the side and the search engine layer is hidden while the site’s layer is shown

What is the actual result

Nothing happens, it’s probably an issue with how I’m using the event “The text of ‘TextInput’ contains” Though I’m not exactly sure where things are going wrong. It could also be an issue with how TextInputs work or I’m just doing it wrong.

Related screenshots

Part I’m having trouble with

The whole sheet for this scene

As is, the text conditions would all need to be true. If you want it to trigger if it contains any of those “addresses” then you’d need to put the conditions into an or

https://wiki.gdevelop.io/gdevelop5/all-features/advanced-conditions/#or-logical-operation

1 Like

Ohhh i see. That makes sense. I’ll try that and if it doesn’t work I’ll come back :slight_smile: Ty!!

IT WORKED!! Thank you so much!!

1 Like