[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,393

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
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Mon Jul 20, 2015 12:33 pm

except when we make a mistake , it no longer works
Image Image
B
25
S
14
G
136
Posts: 876
Reputation: 71,005

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,393

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
134
S
30
G
86
Posts: 5,415
Reputation: 59,516


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests