playMaker

Author Topic: stainmina bar problem  (Read 1466 times)

QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
stainmina bar problem
« on: June 11, 2018, 12:57:15 AM »
Hi all,

I need some help on stainmina bar system.
I want to create an effect that when the player's energy reduces to 0, he won't be able to attack the enemy. After a couple of seconds, the energy will grow back gradually.
I'm currently using 'set scale' and 'ease float' actions, for the energy bar to grow from 0 to 10 within a certain time. The function works. However, the 'set scale' action only works after the 'ease float' action is done. So instead of growing back gradually, the graphic growths back in a sudden after the float value growth back to 10.
Could anyone help me to solve the problem?

Thanks a lot!
M

drakwon

  • Playmaker Newbie
  • *
  • Posts: 34
Re: stainmina bar problem
« Reply #1 on: June 11, 2018, 02:21:05 AM »
use a UI slider for stamina bar

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: stainmina bar problem
« Reply #2 on: June 11, 2018, 09:52:17 AM »
Hi.
Using scale is fine too,

You need 'ease float' in the same state as 'Set scale' and 'set scale' must be set to every frame.

and make sure 'Action Sequence' is off (right click in the state to see if enabled)

QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
Re: stainmina bar problem
« Reply #3 on: June 11, 2018, 10:01:42 PM »
Thanks guys,
The 'set scale' action for every frame works!
Thanks for the help!

M