Hello Guest

Author Topic: Circular Progress Bar  (Read 24770 times)

Raviede

  • Newbie
  • *
  • Posts: 3
    • View Profile
Circular Progress Bar
« on: April 02, 2014, 10:40:43 am »
I have this overlay -> which needs to disappear in a circular fashion and I tried using clipped sprite. But unfortunately I can only clip it starting from the sides. Is it possible to clip it like the overlay in this picture -> ?
« Last Edit: April 02, 2014, 10:57:56 am by Raviede »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Circular Progress Bar
« Reply #1 on: April 02, 2014, 11:09:11 am »
The clipped sprite doesn't support circular shapes at the moment. Someone contributed some code in the private support forum, but the link is now dead.

Raviede

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Circular Progress Bar
« Reply #2 on: April 02, 2014, 11:13:54 am »
Noooo!  Might there be another way of doing this instead of clipped sprite? Thanks for the reply!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Circular Progress Bar
« Reply #3 on: April 02, 2014, 11:25:25 am »
You could write a shader to do it, but it'll probably be easier to modify the clipped sprite code to do it.

Raviede

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Circular Progress Bar
« Reply #4 on: April 02, 2014, 11:30:18 am »
I see. Thanks again!

wagenheimer

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 50
    • View Profile
Re: Circular Progress Bar
« Reply #5 on: April 08, 2014, 03:49:29 am »
Any progress on this? I will really need something like this!

theschnuffel

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Circular Progress Bar
« Reply #6 on: May 21, 2014, 04:51:38 pm »
Same here. I really need this.
Is there some code sample for the clipped sprite?

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Circular Progress Bar
« Reply #7 on: May 21, 2014, 08:18:06 pm »
Guys - check this thread out: http://2dtoolkit.com/forum/index.php/topic,3629.msg18885.html

It works fantastically, the only thing is I can't get it to progress in the other direction.

theschnuffel

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Circular Progress Bar
« Reply #8 on: May 21, 2014, 09:13:40 pm »
The link doesn't work?
"The topic or board you are looking for appears to be either missing or off limits to you."

wagenheimer

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 50
    • View Profile
Re: Circular Progress Bar
« Reply #9 on: May 21, 2014, 09:15:24 pm »
Try this one :

Edit: Link removed - don't share links containing tk2d source outside the private forum.
« Last Edit: May 22, 2014, 09:04:06 am by unikronsoftware »

theschnuffel

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Circular Progress Bar
« Reply #10 on: May 22, 2014, 08:29:46 am »
This is great, thank you!

Now I just need to fiddle with it to invert it and make it start from an arbitrary angle.
« Last Edit: May 22, 2014, 08:46:32 am by theschnuffel »

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: Circular Progress Bar
« Reply #11 on: May 22, 2014, 01:41:49 pm »
theschnuffel, if you manage do you mind sharing? Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Circular Progress Bar
« Reply #12 on: May 22, 2014, 02:34:12 pm »
Its in this thread here. Look for the dropbox link
http://2dtoolkit.com/forum/index.php/topic,3629.msg18885.html

Rif

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Circular Progress Bar
« Reply #13 on: July 18, 2014, 11:04:34 am »
Its in this thread here. Look for the dropbox link
http://2dtoolkit.com/forum/index.php/topic,3629.msg18885.html
I couldn't open the thread.

I got "The topic or board you are looking for appears to be either missing or off limits to you."

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Circular Progress Bar
« Reply #14 on: July 18, 2014, 01:56:07 pm »
You need to register your copy. Instructions here -
http://2dtoolkit.com/forum/index.php/topic,34.0.html