"Set warning, attribute does not exist"

Fool

  • Posts: 88
So I have a scene behavior, with an attribute of type actor, called 'selection'.
Yes, it is already attached to the scene.
Now, I have an actor. And in the actor is an event, 'click on actor' which says 'when the mouse is release on self..'
In this actor mouse event I do 'for this scene, set self to selection for behavior scene selector

When I run the scene, I get this..

Flash] com.stencyl.behavior.BehaviorManager#setAttribute(161): Set Warning: Attribute selection does not exist for Scene Selector

..when it clearly does. What should I do to fix this?

Edit: Apparently I have to use the internal attribute name, in this case "_selection" instead of the given name. Derp.

« Last Edit: March 15, 2016, 08:22:43 pm by Fool »