[Suggestion] Auto-complete for variables?

Discussion and feedback on Construct 2

Post » Mon Jul 20, 2015 12:01 pm

Hello there,

@Ashley - There's auto-complete for function and group names, but why is there no auto-complete for variables (global/local/object variables)?
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

Post » Mon Jul 20, 2015 12:28 pm

There already is. I just checked and it seems to be working fine here.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Mon Jul 20, 2015 12:33 pm

except when we make a mistake , it no longer works
Image Image
B
26
S
15
G
142
Posts: 881
Reputation: 74,060

Post » Mon Jul 20, 2015 2:26 pm

True, it works, but something is missing. In order to get a local variable autocompleted, you have to specify an object first. Would be cool if it will start suggesting an object+variable after you started to type it.

E.g. object "sprite" has a local variable "health". By typing "hea.." auto complete shows the option "sprite.health".
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

Post » Mon Jul 20, 2015 3:18 pm

Surely it's obvious that if you want to reference a sprite variable, then you should use the relevant object prefix.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,547
Reputation: 60,438


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 0 guests