[feature request] Creating variables

Discussion and feedback on Construct 2

Post » Sun Mar 08, 2015 9:18 pm

There are some cases while writing your mighty expressions you suddenly realize that you forgot to add a variable (instance/local/global) to your project. Then you need to close the expression window, add a variable (in case of objects you need to find it in the project first), find an event you were working on and retype (or paste) expression. It's not hard or difficult, but it can take some time to do.

What I want to propose is to create a variables on the fly (in the editor only of course).

Objects: If you are writing an expression for specific object, then this object is already selected, like on image below.
img1.PNG

All you need to do is, for example press right mouse button and click on "add instance variable" - then well know popup window will show up to add it. After you finish you can just simply continue writing your expression including just made variable.

Global/local variables - same as above but with one difference. Newly made variable will be place above current event - so it's easy to find and move after.

This could speed up a lot our workflows, because you would not have to remember to create all your needed variables before making your events. Just make them while you writing expressions.
You do not have the required permissions to view the files attached to this post.
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Sun Mar 08, 2015 9:24 pm

Kind of nice suggestion actually, I approve it, nothing ground breaking but useful when you forgot to do it.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests