Author Topic: Filled CountDown with point?  (Read 1362 times)

longbottomup

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 3
    • View Profile
Filled CountDown with point?
« on: December 23, 2014, 10:43:27 PM »
Hi Aren, hope you well,
I have a question. Can you tell me how to make a effect countdown like this:

My circle countdown working as well, but i want to attach point like that(texture2D) on runtime. Thank you.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Filled CountDown with point?
« Reply #1 on: December 24, 2014, 12:39:10 PM »
Attaching the point is tricky. I don't think you can get an "auto-placement" like thumb on the slider; you likely have to calculate it yourself. Luckily, you know the values so it should be a trivial calculation.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Filled CountDown with point?
« Reply #2 on: December 27, 2014, 09:23:50 AM »
Yup, as Nicki pointed out, knowing the center, the radius, and the angle (360 * slider.value), you can easily calculate where the point should be located using basic math.