How do I search for code in my event

Get help using Construct 2

Post » Mon Oct 19, 2015 8:59 pm

Is there a way to type in something to search in my code, so I don't have to scroll through and find it manually?
so for example i can type in "collision " and it will go through my code and tell me all the places I have collisions?
B
10
S
4
G
3
Posts: 223
Reputation: 3,458

Post » Mon Oct 19, 2015 9:26 pm

There is a search feature under the events tab.
Oddly enough there is also one here on the forum.
Last edited by newt on Mon Oct 19, 2015 10:05 pm, edited 1 time in total.
Image ImageImage
B
170
S
50
G
179
Posts: 8,379
Reputation: 113,427

Post » Mon Oct 19, 2015 9:27 pm

Where you looking for this?
Image
----------------------------------------------------------------------------------------------^^^^^^^^^^^^^^^^
It's time for me to return the favor :)
B
32
S
9
G
9
Posts: 132
Reputation: 5,370

Post » Tue Oct 20, 2015 12:25 am

that doesn't work though, it only finds the first instance of something, it doesn't toggle through all instances of ''health'' or whatever I am looking for.
B
10
S
4
G
3
Posts: 223
Reputation: 3,458

Post » Tue Oct 20, 2015 12:48 am

It hides all events that don't contain the word somewhere inside it, or it's sub-events.

If the word is mentioned a lot, you will see a lot of events. If it's only in 1, only that one will show, and all others will be hidden. You have to cancel the search to get the others to show again.

I add Search to my "Quick Access Toolbar" along the top edge, so it's present no matter what tab is open.

Image


One glitch, if you are at the bottom of a long event sheet, and do a search, you may have to scroll up to see any of the results.
B
239
S
62
G
33
Posts: 903
Reputation: 40,562


Return to How do I....?

Who is online

Users browsing this forum: Christmas and 48 guests