TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Fill up Energy Bar? -HELP
Pages:
1
Fill up Energy Bar? -HELP
megagewinnspiel
Posts: 396
September 07, 2015, 02:22:27 am
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
September 07, 2015, 02:24:51 am
Also, is there a way to use a gradient ingame?
ajimundi
Posts: 230
September 07, 2015, 02:48:53 am
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
September 07, 2015, 02:52:14 am
Use the drawing extension
http://community.stencyl.com/index.php?topic=35352.0
, you'll be able to draw filled arcs.
yoplalala
Posts: 1632
September 07, 2015, 02:54:37 am
If you want a gradient effect, maybe you could put a "gradient actor" under it and apply transparency to the drawing.
LIBERADO
Posts: 2720
September 07, 2015, 03:02:17 am
http://www.filz.us/files/cd31ac25/760/DrawingUtilities.swf
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
September 07, 2015, 03:24:49 am
I think I will ditch the gradient and do it like LIBERADO did. Looks pretty perfect
Thanks alot guys
ajimundi
Posts: 230
September 07, 2015, 03:39:03 am
welp, I completely forgit about the drawing extension.
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. :::
Pages:
1