Transition between 2 frames of an actor - how to make the game remember

jimm84

  • Posts: 31
Hello!

What would be the best approach for making a animation remember that it has played from when you transition between 2 scenes? For example - the player has opened a chest in Scene 1 and (chest goes to frame 2 of actor), the player goes through to scene 2, and the comes back to Scene 1, the chest is still open . Is this result easy to achieve?

Thanks! :-)

Bombini

  • *
  • Posts: 1400
Hi,
again use game attributes.
Either a list or just "chest" true/false.
Cheers!

jimm84

  • Posts: 31
Makes sense, I will have a tinker with the Boolean method. I'm trying to get my head around attributes and attaching them to things.

Bombini

  • *
  • Posts: 1400
Try to think ahead a bit.
How many chests do you have for example?
A lot?
Why not create a list (game atrribute) and say position 0 is chest 0, 1 is chest 1, 2 is chest 2, ....
Value for each position if 0 = closed, 1 = opened.

Cheers!