Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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
-
use a UI slider for stamina bar
-
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)
-
Thanks guys,
The 'set scale' action for every frame works!
Thanks for the help!
M