How do a search system?

Get help using Construct 2

Post » Sat Jul 01, 2017 3:00 am

I am do one game, where you place objects in a list. The problem is that the list is large and needs a search engine to make it easier. I wanted to know how to make a system to look up the names of objects. If possible one that searches by typed letter.
B
6
S
2
Posts: 9
Reputation: 468

Post » Sat Jul 01, 2017 5:29 pm

Hi,

You can help yourself by making correct object names such as:

Bullet_red
Bullet_blue
Bullet_yellow

Enemy_1
Enemy_2
Enemy_3

etc

That way you can find your objects much easier.

Good luck.
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.
My games & gaming portal = DolyGames
If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.
Cheers,
COSMOS
B
21
S
9
G
1
Posts: 77
Reputation: 2,181

Post » Sat Jul 01, 2017 9:50 pm

Good idea, but i wanted type:

TextBox = House

And show the house in at list.

Is type one game sandbox of add objects in one area.
Last edited by JohannesLudwing on Sat Jul 01, 2017 9:53 pm, edited 2 times in total.
B
6
S
2
Posts: 9
Reputation: 468

Post » Sat Jul 01, 2017 9:51 pm

DolyGamesCosmos wrote:Hi,

You can help yourself by making correct object names such as:

Bullet_red
Bullet_blue
Bullet_yellow

Enemy_1
Enemy_2
Enemy_3

etc

That way you can find your objects much easier.

Good luck.


Good idea, but i wanted type:

TextBox = House

And show the house in at list.

Is type one game sandbox of add objects in one area.
B
6
S
2
Posts: 9
Reputation: 468

Post » Tue Jul 04, 2017 2:22 am

You could do this. Put all the names in an array. Then loop over the array and use the find expression to see if the input can be found for each item. If any do add it to the displayed list of items.
https://www.dropbox.com/s/ufapkdonl2aiy ... .capx?dl=1
B
94
S
33
G
113
Posts: 5,353
Reputation: 73,267

Post » Sat Jul 08, 2017 2:02 am

Message: JohannesLudwing can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
R0J0hound wrote:You could do this. Put all the names in an array. Then loop over the array and use the find expression to see if the input can be found for each item. If any do add it to the displayed list of items.
https://www.dropbox.com/s/ufapkdonl2aiy ... .capx?dl=1


Thank you, it helped a lot.
B
6
S
2
Posts: 9
Reputation: 468


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests