Search Variable Name

Get help using Construct 2

Post » Wed Oct 10, 2012 8:40 am

Hi,

How do I make a search feature? For example if User input text 'John' than a sprite will load a picture which variable contain text 'John' in it.

Thanks in advance
B
17
S
3
G
3
Posts: 109
Reputation: 2,747

Post » Wed Oct 10, 2012 9:11 am

You can compare the text in the input field (system->compare two values) with predefined strings (like "John"). If condition is met - > create a certain sprite.

If you have many different sprites to create, you can also use the "nickname" plugin by rexrainbow for easy sprite creation:
Nickname Pluginxoros2012-10-10 09:12:40
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Wed Oct 10, 2012 12:47 pm

Thanks for your reply
Yes that would work
But what i really meant is that:
If user input data 'John'
Than it will result sprite with the name 'John Carter', 'John Cena'
Because the data the user input containing text 'John'

Sorry for my bad english
B
17
S
3
G
3
Posts: 109
Reputation: 2,747


Return to How do I....?

Who is online

Users browsing this forum: Kagubro, Yahoo [Bot] and 18 guests