Behavior just affecting the selected actor


  • Posts: 1118
"This way, with actor values, the value correspond to the specific actor instance, and when I used the attribute all actors of that type was effected."

Correct, I have come to prefer an "object oriented" approach, where I leave more to each actor instance to react or act. This makes it easier to control and debug.

As for only one actor being active, use a global (game) boolean, e.g. OneIsActive. Default false.

On Activate Actor:
If  OneIsActive is false
Set OnIsActive to True
Do whatever
Do nothing

On deactivate actor
Set OneIsActive to False


  • Posts: 48
Yes, a Game attribute was my thought as well.

TNX a bunch, increased my understanding of Stencyl a lot.
Did not understand how to catch the Actor instance before.

TNX again!