playMaker

Author Topic: stainmina bar problem  (Read 265 times)

QueenM56

  • Junior Playmaker
  • **
  • Posts: 55
    • View Profile
stainmina bar problem
« on: June 10, 2018, 09:57:15 PM »
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: 26
    • View Profile
Re: stainmina bar problem
« Reply #1 on: June 10, 2018, 11:21:05 PM »
use a UI slider for stamina bar

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3664
    • View Profile
    • jinxtergames
Re: stainmina bar problem
« Reply #2 on: June 11, 2018, 06: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
    • View Profile
Re: stainmina bar problem
« Reply #3 on: June 11, 2018, 07:01:42 PM »
Thanks guys,
The 'set scale' action for every frame works!
Thanks for the help!

M