how to make tiled textureprogress?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jimmy

I don’t understand how work TextureProgress. I want to make such textureprogress:
example
I faced some difficulties. If i used “under texture” - 82px, progress - 80px. In inspector - “max value” - 20, i will get step 4 px in progress texture, if I calculate the tile, I’ll get glitch.
glitch

in inspector - “step” doesn’t work as i need. Help me, plz!

:bust_in_silhouette: Reply From: Qwertygiy

You are not calculating your sizes properly. I remade your top picture at single-pixel size:

pixel-scaled copy

The “under” is 83 pixels wide, not 82.

The “progress” is 79 pixels wide from first yellow to last yellow. You’ll need to choose which end has the extra space:

  • whether that 1 px bar comes before each progress bar (in which case, there needs to be extra 1 pixel space before first yellow)
  • or after each progress bar (in which case, there needs to be extra
    1 pixel space after last yellow)

in order for it to be the 80 pixels, which can be divided by 4 for each step.

I went through it and it didn’t work the way I needed, but I found a way out. Thanks for submitting the idea.

Look at what i did

Jimmy | 2019-03-03 07:35