Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
Maybe I did not searched with the proper words, but I cannot find a way to check if a string contains some text.
For example I would like an event like this one:
variable1 = "sometext"
if variable1 contains "text" return true.
Is this possible ?
From the manual:
Find the first index within src that text occurs, else returns -1.
so system compare two values : find(variable1, "text") is not -1
if the variable contains the text this condition will be true...
http://s000.tinyupload.com/index.php?fi ... 9968479480
Thank you littleStin tha'ts perfect !
I was looking in regex, but this was in fact much simplier.
Korbaach, that's interesting. This is much more complex, but it reveals some interesting tricks, thank you.
Develop games in your browser. Powerful, performant & highly capable.
Can u upload that again please?
see the second comment in this post.
Use "System->Compare two values"
first value: Find(text1, text2)
comparison: Not equal to
second value: -1