Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (degenerate_762, AndrewAMD, Ayumi), 1,321 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
on_level Not functioning? #187378
03/07/08 03:51
03/07/08 03:51
Joined: Jun 2003
Posts: 427
Prison
DarkWhoppy_ Offline OP
Senior Member
DarkWhoppy_  Offline OP
Senior Member

Joined: Jun 2003
Posts: 427
Prison
Just wondering... But isn't on_level suppose to return the a percent of the current level being loaded? A7.07 Extra Edition...

I get nothing and I have it setup just like the manual...

Code:
  function Update_LoadingBar(percent)
{
if(Load_Bar.visible == on)
{
Load_Bar.scale_x = (percent / 100); //0.1 to 1.0 range
}
wait(1);
}
on_level = Update_LoadingBar;




darkwhoppy@msn.no.spam.com (remove no.spam.) Website: WhoppyArts
Re: on_level Not functioning? [Re: DarkWhoppy_] #187379
03/13/08 17:14
03/13/08 17:14
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
I guess you have to make it like this:

Code:

while(on_level < 100)
{
Load_Bar.scale_x = (on_level/100);
}



Don't overgive the value and don't use wait!

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: on_level Not functioning? [Re: DarkWhoppy_] #187380
03/13/08 17:22
03/13/08 17:22
Joined: Aug 2005
Posts: 343
Germany
HPW Offline
Senior Member
HPW  Offline
Senior Member

Joined: Aug 2005
Posts: 343
Germany
If you use Lite-C, then you must use "if (is(Load_Bar, VISIBLE)) {...}" instead of "if (Load_Bar.visible == on) {...}" and don't use the wait(1);

on_level is working in my Lite-C Project and I use the following code:
Code:

function eb_fnc_ladebalken(var v_percent)
{
eb_pan_ladebalken.size_x = maxv(integer((screen_size.x-40)/100*v_percent), 1);
}

on_level = eb_fnc_ladebalken;



Last edited by HPW; 03/13/08 17:27.

Evil Blood (v. 0.52) RPG
Commport.de (Social Network Community)
Re: on_level Not functioning? [Re: HPW] #187381
03/17/08 02:18
03/17/08 02:18
Joined: Jun 2003
Posts: 427
Prison
DarkWhoppy_ Offline OP
Senior Member
DarkWhoppy_  Offline OP
Senior Member

Joined: Jun 2003
Posts: 427
Prison
Well... I stopped messing with it because it wouldn't do anything no matter what I tried..

And just earlier when I was doing a test on my project ... the load bar actually worked.

Went from zero to 100 percent and started the game...

Sadly, I have no clue as to why it didn't work before. Although, maybe my PC loaded the level too fast because most data was stored in the memory from other tests? That might've been it... Who knows...


darkwhoppy@msn.no.spam.com (remove no.spam.) Website: WhoppyArts

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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