animated loading bar that grows, yes me newb

Started by theswitch, Thu 20/07/2006 21:55:58

Previous topic - Next topic

theswitch

yes this is an easy one, I'm sorry to take up your time with this question, but atleast I added that little bit onto the end of the thread name ;)

anyhow, first you should know this loading bar will not be for loading up an ags game or area as I belive it doesn't need one

but

I want one anyway ;D

sooo ofcourse I just read that similar thread about makeing a bar reflect an int value and the one reply about useing a button size to create a dynamic bar wich was from Mr Pablo (Mr I think?)

sooo

I would use repeaditly exicute (spelling :-[) to make this happen I presume, the bar would appear and start loading (imaginary data ofcourse) from a click on a seperate gui button

the real reason why I'm asking this in the forums is because I was working steady on a project and then left it for oh. . . 5 months or so, so I have to get up to speed agien :-[ EDIT: wich would be my first AGS project


Thorsell

Maybe you could make an animating object? That, I think, is easier.

monkey0506

You could use Button.Width and Button.ClipImage.

Just make sure that Button.ClipImage is true and set the width with some sort of loop:

Code: ags
int i = 0;
while (i < 50) { // wait half a second, then update the bar image by 2%
  btnBar.Width = (i * 2);
  i++;
  Wait(20);
  }


You would, of course, set the Button's image to that of the full bar in the editor.

theswitch


SMF spam blocked by CleanTalk