[Request] Highlighted or Advanced Search

Discussion and feedback on Construct 2

Post » Wed Nov 26, 2014 4:14 pm

I have a number of arrays that are generated via the editor. I found this easier as we can't simply import data, so I needed to go in one by one and add the contents via Construct 2 events.

I have 10 arrays, and each array contains over a hundred questions, and each question has 4 possible answers. This means that in order to build the array using events, I needed over 500 lines.

I broke this up into groups so I could make it easier for myself, but in trying to submit my game I've been told that I need to change a couple of the words. Here's where the problem lies.

I need to scroll through and read every line to replace these words. I've used the search tool to find the words, but because they are in the same event (as actions) it only shows me the array they're in, not just the lines that are effected. This means I still need to read through 500 lines for each category.

Might it be possible to have an advanced search that hides anything that doesn't include that word, or even highlight where that word is? I've looked through it 3 times manually, and for some reason I can't see it anywhere... but I know it's there...

Any help on this would be appreciated!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 963
Reputation: 10,721

Post » Thu Nov 27, 2014 2:06 am

Well, more advanced search has been a hot request for ages...but my understanding is that it's a less-than-trivial thing to implement.

You could try opening the data.js/c2runtime.js file and search for the word in there. I would suggest the excellent text editor Notepad++. It has a very advanced search function.

http://notepad-plus-plus.org/
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Thu Nov 27, 2014 3:08 pm

"I have a number of arrays that are generated via the editor. I found this easier as we can't simply import data, so I needed to go in one by one and add the contents via Construct 2 events.

I have 10 arrays, and each array contains over a hundred questions, and each question has 4 possible answers. This means that in order to build the array using events, I needed over 500 lines. "

I suggest that you use project files instead, and that you fill an array using said project file

for exemple: Questions.txt, content:
Question1;Awnser1;Anwser2;Anwser3;Anwser4;GoodAnwser(1to4)|
Question2;Awnser1;Anwser2;Anwser3;Anwser4;GoodAnwser(1to4)


then you fill your array with the questions and awnsers with a function that will use tokens to fill it.

Or something alike.

Still agree with the original suggestion though.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to Construct 2 General

Who is online

Users browsing this forum: AndreasR and 5 guests