Let me start off by saying im not very familiar with dialogs, but i've played around with it that i know how to get a dialog progress bar working. The problem is when i set the progress bar to a custom image, and i try to get the progress to fill up - it wont. So i go ahead and create another dialog image to scale which works, except it goes flat at the end like an actualy bar, instead of staying within the image of the actual bar (the bar isnt a square, its diagnal on both ends)
What am i doing wrong?
Official Video of the game: http://youtu.be/MldTkicuMK8
Official Forums of the game: http://www.TugDefense.com
For progress bars you have to use the set maximum value and the minimum value and then for it to fill you have to set the current value in relation to that.
create dialog dialog blah blah blah
create a progress bar for dialog dialog
set last created dialog item size to size x, size y
set minimum value to 0
set maximum value to 100
set current value to 1*number of game seconds
I'm going to attach an example map in a little bit when i'm finished to help you understand better.
Also included in the map is my own example of a progress bar which i think look better that i just create an image with and then scale it according to their progress.
I'm watching you
Need Help with dialogs? Use Dialogception
there you go
Hey man, thanks a lot I really appriciate it. Unfortunately this doesn't solve my problem. My problem was in custom image bars being filled without having the progression extending outside of the box, if that makes sense.
let me see if i after looking at this i have it right. Essentially you have a custom image that is a diamond. and when you set the custom image for the bar it makes the diamond a square. as for progression outside of the box. Huh O.O i have no idea what you mean, if you could post an example of it that would help me figure it out. or you could send me a pm with it if you don't feel comfortable posting it.
Thanks i figured out what i needed to do, or at least an alternative.
In the long run, i didnt end up using any progression bars but made a custom bar in photoshop and split it into 15 different images as it fills up. I then triggered it to use the appropriate photo with the bar filled to the amount.
You must login to post a comment. Don't have an account? Register to get one!