@ar2sawseen Wow yours looks much further along than mine. Nice work! I wanted to support gtweening but admittedly I'm just starting out with Gideros and decided to keep it simple. I was actually just checking out AceSlider, you've got lots of really useful code. I might even end up using yours
@joelghill Thanks! Yea I just wanted something simple and re-useable. Hope you find it useful.
@OZApps I considered that, wasn't sure it would work. I guess it would have! Is that code available? I only see the video.
@ detour thank you for sharing your code... but do you know the code that when you click a button then the health bar increase to one. Like a score health bar,that after clicking the button the health bar increase until it reach to 100 % after clicking 100 times.
@Gracille hey, sorry I missed this. Sounds like you want to use DT_Healthbar as a progress bar. It will work the same way, just bind a click event to a button that calls add(). Here's some quick and dirty pseudo-code:
progress_bar = DT_Healthbar({-- your options here
max_value =100-- this bar is considered full if it has 100 points added to it})-- click this 100 times and the health bar will be full
add_button:addEventListener(Event.MOUSE_DOWN, function()
progress_bar:add(1)end)
Comments
http://www.nightspade.com
Off-topic: I made this a question rather than a discussion by mistake, can a mod fix this?
Here's an example of mine: https://github.com/ar2rsawseen/Progressbar
Additionally it has text and bar can be Gtween animated
http://www.giderosmobile.com/forum/discussion/1530/an-alternative-progress-bar
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
@joelghill Thanks! Yea I just wanted something simple and re-useable. Hope you find it useful.
@OZApps I considered that, wasn't sure it would work. I guess it would have! Is that code available? I only see the video.
but do you know the code that when you click a button then the health bar increase to one. Like a score health bar,that after clicking the button the health bar increase until it reach to 100 % after clicking 100 times.
ok,I will test it in our Thesis game