Forum rules - please read before posting.

load and save

Hi Chris,

Thank you for your answers.

I have another problem related to saving and loading.

I have a clock puzzle with two separate Animators: one for the big hand and one for the small hand. Each Animator uses an Integer parameter (BigHand and SmallHand) to move through animation states (0 → 1 → 2 → ...).

The current hand values are also stored in Adventure Creator variables.

The problem appears after loading. For example:

I set the clock to 8:30 and save the game.
I continue playing and change the clock to 8:45.
I load the 8:30 save.

After that, the clock becomes inconsistent. Sometimes one or both hands stay at the last position instead of the saved position, sometimes they return to the default position (12:00), and sometimes the hotspot behavior also becomes inconsistent.

It seems that the Animator state and the saved variable values become out of sync after loading.

Is there a recommended way in Adventure Creator to correctly restore Mecanim Animator parameters or Animator states after loading a saved game in a setup like this?

Comments

  • You can attach the Remember Animator component to an Animator to have AC save it's state / parameter values, but if the states are linked to variables it may not be necessary.

    Try attaching it by all means, but otherwise share screenshots of the setup along with your AC/Unity versions and I'll see if I can spot the issue.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.