[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
408
S
242
G
92
Posts: 24,888
Reputation: 198,582

Post » Mon Jul 20, 2015 12:33 pm

except when we make a mistake , it no longer works
Image Image
B
27
S
16
G
152
Posts: 886
Reputation: 79,200

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
140
S
31
G
88
Posts: 5,725
Reputation: 61,441


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests

cron