Suggestion: Function Param Name

Discussion and feedback on Construct 2

Post » Thu Dec 04, 2014 12:13 am

Hi,

the function object is awesome. And the recently added autocomplete feature is really great.
It would be great if it were possible to change the parameter name.
Only the names display in the call function window.
Suggestion: Add on the "On function" Event window textboxes for entering parameter names.
Assigned to the parameter index. In the function can still be used FunctionParam(n).

What do you think about this feature? :-)
B
13
S
4
G
1
Posts: 107
Reputation: 1,337

Post » Thu Dec 04, 2014 3:22 pm

It's been asked many times, twice by me. I don't know why it's left out, probably not a priority. rexrainbow's function object allows it though.
B
43
S
23
G
20
Posts: 735
Reputation: 12,027

Post » Thu Dec 04, 2014 3:58 pm

Recently I was thinking that would be great if we could "pick object" in functions by selecting objects.

On sprite X=100 -> Call function "sprite" (Sprite.UID, "some other parameters")

+On function "sprite"
+Sprite.UID = function.param(0) -> Set Sprite X to function.param(1)

and then you could only
On sprite X=100 -> Call function "spriteX" ("some parameters") - pick object dialog - select sprite

+On function "spriteX" -> Set Sprite X to function.param(0) (while sprite being already picked)


this could save a lot of events xD
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 26 guests