Cooldown mask by fan sprites
Since the cooldown mask by canvas might be lag on mobile app. I made another cooldown mask which create fan shaped by fan elements.
Demo
Capx
Designer need to prepare a sprite object which has 9 frames with fan element shaped in degree 256, 128, 64, 32, 16, 8, 4, 2, 1
fame 0 = 256 degree fan start at degree 0
fame 1 = 128 degree fan start at degree 0
fame 2 = 64 degree fan start at degree 0
fame 3 = 32 degree fan start at degree 0
fame 4 = 16 degree fan start at degree 0
fame 5 = 8 degree fan start at degree 0
fame 6 = 4 degree fan start at degree 0
fame 7 = 2 degree fan start at degree 0
fame 8 = 1 degree fan start at degree 0[/code:3s1mjne2]
Then use action: Setup fan to assign the fan sprite object type.
Action: Set percentage will create the fan shaped by these fan element sprites.
This behavior will maintain 9 sprite instances with frame index 0~8. User might see the sprite count from debug panel.
The start angle and fan direction(clockwise or anti-clock wise) could be set at properties table.rexrainbow2014-02-18 05:06:22