Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: QueenM56 on June 11, 2018, 12:57:15 AM

Title: stainmina bar problem
Post by: QueenM56 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
Title: Re: stainmina bar problem
Post by: drakwon on June 11, 2018, 02:21:05 AM
use a UI slider for stamina bar
Title: Re: stainmina bar problem
Post by: djaydino 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)
Title: Re: stainmina bar problem
Post by: QueenM56 on June 11, 2018, 10:01:42 PM
Thanks guys,
The 'set scale' action for every frame works!
Thanks for the help!

M