Hello Guest

Author Topic: Progress bar in 2D Toolkit  (Read 8486 times)

tatelax

  • Newbie
  • *
  • Posts: 1
    • View Profile
Progress bar in 2D Toolkit
« on: May 08, 2012, 05:01:18 am »
Hello,

I was wondering how I would go about making a progress bar/health bar with 2d toolkit. How would I do this?

Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Progress bar in 2D Toolkit
« Reply #1 on: May 08, 2012, 09:18:13 am »
Hi,

You can do this in one of two ways, depending on the desired look.

1. You can use the sliced sprite, and then animate the dimensions parameter. This means the middle bit is more or less one solid color or streteched in one axis.

2. Use the clipped sprite sample which is available in the private support area, and use it to reveal part of the full sprite. This lets you have an image as the bar, which may suit your needs better.

unikron