Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (howardR), 1,065 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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