feature request: attributes whose scope is local to a specific event

acp

  • Posts: 95
I work in design mode and a lot of times want to use temporary attributes for storing partial calculations.  This keeps the design blocks from becoming really large and difficult to manipulate.

The problem is that the temporary attributes take up space in the attribute tab and the "getter/setter" panels.  This clutters up those panels with temporary variables that are only used in a single event.

My feature request is for attributes that only exist in the scope of a specific event.  Ideally this would be implemented with a "local attribute" tab which duplicates the event-wide attribute tab in the design palette.  Then in the getter/setter sections the attributes could be separated by event-local and behavior-global.

A step in the right direction that would probably be easier to implement is to have each event automatically initialize a single fixed name temporary attribute of each type, TempNumber, TempList, TempText and allow those to be used in design blocks without having to add them to the attribute tab.

SadiQ

  • Posts: 1795
If you're actually considering the need for local attributes, I'd suggest that you start to use code blocks. Using them is a pain sometimes(simply because of the fixed width of the large code block), but it's a lot faster to create a variable with code than it is to create an attribute using stencyl's design mode.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

acp

  • Posts: 95
Heh not learning a new syntax is one of the things that attracted me to stencyl in the first place.

But you are right I should probably learn if I'm going to use the engine for anything other than a toy

Justin

  • *
  • Posts: 4716
I'm currently working in this area. I can't say for sure when it'll be available (probably 3.3 or 3.4), but I'm definitely going to be including a local attributes feature.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

acp

  • Posts: 95
Awesome, ty for your efforts in making the engine!

LIBERADO

  • *
  • Posts: 2720
I'm currently working in this area. I can't say for sure when it'll be available (probably 3.3 or 3.4), but I'm definitely going to be including a local attributes feature.
Any news about this?

A local attributes feature is really necessary to perform a better modular coding and a more reliable data encapsulation.

I am also waiting for this important feature is implemented in Stencyl.

« Last Edit: January 28, 2016, 05:30:30 am by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

yoplalala

  • *
  • Posts: 1632
Me too, I would love it :)

cabinfever

  • Posts: 159
One for me as well!

Justin

  • *
  • Posts: 4716
I don't remember why I had this tab open. I must have been searching for something else.  ?_?

Anyway, cross-posted this to the Issue Tracker so it's easier for me to keep in mind.

http://community.stencyl.com/index.php?issue=265.0
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)