4ian / GDevelop

:video_game: Open-source, cross-platform game engine designed to be used by everyone.
https://gdevelop.io
Other
6.2k stars 713 forks source link

Autocomplete variable parameter with the variable selected in the variable editor #6507

Open D8H opened 1 month ago

D8H commented 1 month ago

Also:

arthuro555 commented 2 weeks ago

Create new variables with the type "Number" by default instead of "String".

Hmmm... Is this decision based on user research?

Personally I find myself using strings more often than numbers, and to prefer strings as a default, since I can still write a number in there, then change the type. I personally do not find myself always going through the fields I configure from left to right/top to bottom, but to jump ahead then back depending to fill in fields I assume I might forget first, and the value I settled on setting the variable to is something I am more likely to forget than they type I want to give the variable.

In fact I never was frustrated by the default type being a string, but am very often irritated by Arrays children not being strings by default....

D8H commented 2 weeks ago

Hmmm... Is this decision based on user research?

Personally I find myself using strings more often than numbers, and to prefer strings as a default, since I can still write a number in there, then change the type.

Looking at examples, games mostly use number variables. Strings are usually directly set on text objects. I guess that strings variable are mostly used for the state of FSM.

Could it be that you often work on network related features which probably requires things like string id?

In fact I never was frustrated by the default type being a string, but am very often irritated by Arrays children not being strings by default....

Good new for you, arrays now use the previous child type.