playMaker

Author Topic: Save GameObject state  (Read 1144 times)

Seiryu33

  • Full Member
  • ***
  • Posts: 133
Save GameObject state
« on: June 29, 2018, 07:13:18 AM »
So here's a dilemma: my game uses a life counter that uses mecanim transitions rather than UI like scoring. When the player dies, the level restarts but it also resets the counter to the default state. Is there anyway to save the transition state of the counter so that when the player loses a life the counter matches the float variable? The float variable saves but not the counter itself. Would it work better to use UI instead?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Save GameObject state
« Reply #1 on: June 29, 2018, 07:46:46 AM »
Hi.

Can you show the setup.

Maybe on restarting (default state) have some transitions to the animations and check 'float less than' (or greater than depending if you count up or down)