Mr Giff
Member
Hey guys, I'm not sure how to go about this. I have a game with ds grid used for inventory. I want to be able to search that inventory with a search bar.
I currently have a search bar object which draws input text in real time to the sprite's width and height. That text is assigned to a global variable on every step so that it can be used to dictate what is being shown.
I can't find any way of searching a data structure however. Besides queries, where the ID or position in the grid is required.
I found a way of getting it to return exact names, but only if you type the whole name. For example, if you were to type "sword"... Nothing would show. But if you typed broad sword or short sword, a broad sword or short sword would be the only result respectively.
What I am looking for is to be able to type "S" or "Sword" and have all the results that contain "S" or "Sword" to be shown instantaneously
What are your thoughts? Is there a way to make a search engine / contextual search in game maker?
Any DLL's that might do the trick?
Cheers!
I currently have a search bar object which draws input text in real time to the sprite's width and height. That text is assigned to a global variable on every step so that it can be used to dictate what is being shown.
I can't find any way of searching a data structure however. Besides queries, where the ID or position in the grid is required.
I found a way of getting it to return exact names, but only if you type the whole name. For example, if you were to type "sword"... Nothing would show. But if you typed broad sword or short sword, a broad sword or short sword would be the only result respectively.
What I am looking for is to be able to type "S" or "Sword" and have all the results that contain "S" or "Sword" to be shown instantaneously
What are your thoughts? Is there a way to make a search engine / contextual search in game maker?
Any DLL's that might do the trick?
Cheers!