Fill up Energy Bar? -HELP

megagewinnspiel

  • Posts: 396
Hey guys, does anyone know how to fill this circle bar just with the drawing event?

Creating 100 Animations for that actor and just switch it according to the filled percent would use up too much memory ;)

Thanks :)

megagewinnspiel

  • Posts: 396
Also, is there a way to use a gradient ingame?

ajimundi

  • *
  • Posts: 230
You could use image API to instance the full circle, then clear parts of it with a shape, basically substracting the image to the percentage you desire.

Or, if you would ditch the gradient, simply create a 1/100th of a circle of image, and rotate and dupicate it.
::: It's never too late, unless you're dead. Maybe not even then. :::

yoplalala

  • *
  • Posts: 1632
Use the drawing extension http://community.stencyl.com/index.php?topic=35352.0 , you'll be able to draw  filled arcs.

yoplalala

  • *
  • Posts: 1632
If you want a gradient effect, maybe you could put a "gradient actor" under it and apply transparency to the drawing.

LIBERADO

  • *
  • Posts: 2720
<a href="http://www.filz.us/files/cd31ac25/760/DrawingUtilities.swf" target="_blank" class="new_win">http://www.filz.us/files/cd31ac25/760/DrawingUtilities.swf</a>
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

megagewinnspiel

  • Posts: 396
I think I will ditch the gradient and do it like LIBERADO did. Looks pretty perfect :)

Thanks alot guys :)

ajimundi

  • *
  • Posts: 230
welp, I completely forgit about the drawing extension. :D

that would make it easier. prep the gradient full arc and clear it with the 'fill ring piece at.... ' drawn on the opposite of what you want to show. :)
::: It's never too late, unless you're dead. Maybe not even then. :::