Changing frames of an actor and having it remain,

chongyunxiang

  • *
  • Posts: 278
Hi,

How do I change the frame of an actor and have it remain the same frame when I change scenes and go back to it again?

I'm trying to make a Mute button and when I change scene, the frame of the actor goes back to the initial one.

Thanks!

DTH

  • *
  • Posts: 148
give it an attribute, "State" or what ever you like, when the mute button is clicked set the "State" to true, and in the "create" event check the sate and set the correct animation for up/down states

add your button up/down state as new animations for a single actor, not frames of an animation, will be easier that way

Also, look inside "Three State Button" actor behavior for guidance of how to setup a button actor

ajimundi

  • *
  • Posts: 230
Since it is persistent across scenes, you should create a game attribute, let's call it 'Is Mute'. And on your mute button actor, create a behavior to check the 'Is Mute' state and adjust the animation accordingly.
::: It's never too late, unless you're dead. Maybe not even then. :::

chongyunxiang

  • *
  • Posts: 278
Can I pause a moving background?