[suggestion] Global and Local variables in properties bar

Discussion and feedback on Construct 2

Post » Mon May 09, 2016 11:03 am

I want to clarify, not trying to knock on you @megatronx. I am legitamately curious as to what purpose/use you would have for such a feature. Over the years I have used many IDE's, on many projects, and worked with many people. I have never once seen or heard of someone taking advantage of a variable browser. That said, I know some people must use them, because there is a plugin for it on Notepad++. I just have never personally encountered a real use case for it.

Something that I have used and enjoy is a function viewer which I wish Construct had. The search feature is not that great in construct, so being able to click on a function I have created and going to it with all my code listed (unlike Search which hides code) would be awesome.
B
42
S
18
G
8
Posts: 495
Reputation: 8,410

Post » Mon May 09, 2016 6:51 pm

megatronx wrote:Also, when you test, you'd want to be able to edit them faster then trough pop up.

I think I get it. It would be useful if you want to edit your variables in the event sheet inside a complex and possibly deeply nested code. In that case it could be helpful to see all the currently available variables in a separate place too and edit them on the fly.
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717

Post » Mon May 09, 2016 7:31 pm

glerikud wrote:
megatronx wrote:Also, when you test, you'd want to be able to edit them faster then trough pop up.

I think I get it. It would be useful if you want to edit your variables in the event sheet inside a complex and possibly deeply nested code. In that case it could be helpful to see all the currently available variables in a separate place too and edit them on the fly.


Exactly. And when you running out of ideas for variables names, it would be good to just glance and remind yourself what variable name was, where it is located etc. as well as quickly edit. I have proposed properties tab, since it would be best place to display them, as well as you just could have a tab there you'd select.

Global object with variables is an option but it wouldn't include local variables.

humanescape wrote:I want to clarify, not trying to knock on you @megatronx. I am legitamately curious as to what purpose/use you would have for such a feature. Over the years I have used many IDE's, on many projects, and worked with many people. I have never once seen or heard of someone taking advantage of a variable browser. That said, I know some people must use them, because there is a plugin for it on Notepad++. I just have never personally encountered a real use case for it.

Something that I have used and enjoy is a function viewer which I wish Construct had. The search feature is not that great in construct, so being able to click on a function I have created and going to it with all my code listed (unlike Search which hides code) would be awesome.


When you loads of variables, list is really important too keep track of them. Unity has it for example. And yes, search feature is not the best one either, but it's not badr.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Wed May 11, 2016 7:00 am

Why don't you use a word document or an excel sheet to keep track of the variables and their usage in each event sheets?
Because that's what I do to avoid overlap and mishandling and to avoid bugging out features when doing maintenance on event sheets .

It's not hard and take hardly a minute every hour of development.

Because even if you know what variables have already been created, it would be quite difficult for you to remember where are all of them used and how.
Best to just jot those down. Easier for maintenance and bug removal.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Sockratease and 4 guests