Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to make loading level #362626
03/08/11 21:27
03/08/11 21:27
Joined: Feb 2011
Posts: 26
J
jojo1995 Offline OP
Newbie
jojo1995  Offline OP
Newbie
J

Joined: Feb 2011
Posts: 26

Re: how to make loading level [Re: jojo1995] #362628
03/08/11 21:31
03/08/11 21:31
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
What do you mean with this picture? The process bar?
If yes, on_level helps here.

Re: how to make loading level [Re: jojo1995] #362631
03/08/11 21:32
03/08/11 21:32
Joined: May 2008
Posts: 257
D
djfeeler Offline
Member
djfeeler  Offline
Member
D

Joined: May 2008
Posts: 257
Read the manual. It's with on_level :

Code:
PANEL* pLoadBar = { layer = 9999; }
function on_level_event(percent)
{
  set(pLoadBar,SHOW | LIGHT);   // switch load bar on
  vec_set(pLoadBar.blue,vector(255,200,200));
  pLoadBar.pos_x = 50;
  pLoadBar.pos_y = 50;
  pLoadBar.size_x = 10 + 3 * percent;   // 10..310 pixels
  pLoadBar.size_y = 10;
  if (percent >= 100) {  // level loading finished    wait(-1.0);          // display the load bar for one further second
    reset(pLoadBar,SHOW);  // switch it off
  }
}



djfeeler

Re: how to make loading level [Re: djfeeler] #362634
03/08/11 21:34
03/08/11 21:34
Joined: Feb 2011
Posts: 26
J
jojo1995 Offline OP
Newbie
jojo1995  Offline OP
Newbie
J

Joined: Feb 2011
Posts: 26
thank you

Re: how to make loading level [Re: jojo1995] #362640
03/08/11 21:47
03/08/11 21:47
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline
User
TheShooter  Offline
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
One Question. While loading a level, there are no frames. How can then aktualize the progress bar??

sry for my english xD


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: how to make loading level [Re: TheShooter] #362722
03/09/11 14:09
03/09/11 14:09
Joined: Jan 2011
Posts: 65
R
reknak Offline
Junior Member
reknak  Offline
Junior Member
R

Joined: Jan 2011
Posts: 65
@TheShooter, I'm a bit a noob with 3dGS, but maybe with

Have action/loop which increases the variable of the window and use
Code:
wait(-1); //wait 1 second

instead of
Code:
wait(1); //wait 1 frame

at the end.


Last edited by reknak; 03/09/11 14:10.
Re: how to make loading level [Re: reknak] #362726
03/09/11 14:19
03/09/11 14:19
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
on_level gives you the acutal percent.

void loading(var progress)
{
..
}

...
on_level = loading;
...


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1