Stencyl 3.4.0 is now out. Get it now!

Actor Memory - A simple saving behavior


  • Posts: 625
This behavior is a simple,  two event behavior. It uses two Game Attributes to trigger, load, and save actor positions and animation upon swapping scenes.

Basically, it works like this:

When a boolean is triggered, it saves the X and Y position, and animation onto a single item in side a list, you can use this whenever you need, it'll just replace it instead of adding it to a list if it already exists.

Once the actor is created again from as scene reload or revisit, the creation event will detect the stored data from the list, and loads sub data inside the list item.

Anyhow, you can see the scripting on how it works below, as it's pretty simple.