Hi all,
I seem to have encountered a bug in Stencyl's handling of initial values.
Problem description
Modifying List attributes in a behavior also modifies the initial value – by "initial value" I mean either the value set as "Default Value" in the behavior, the value set in the when attaching a behavior to an actor, and the value set when customizing an actor.
Reproducing the problem
I have a behavior with a List Attribute. The list attribute has an initial value. When my behavior modifies the value of this list attribute and reloads the scene, the value of the list is NOT restored to its initial value.
Attached you will find a game which shows this behavior and compares it to the behavior of e.g. Text attributes.
Expected behavior
When reloading the scene, I expect the List attribute to be completely restored to its initial value.
Workaround
The workaround is of course to _not_ modify your list attributes, but it's quite annoying.
- publysher
june 10, 2012 Updated the description and reformatted the post