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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 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
level changing problems #127447
04/30/07 17:34
04/30/07 17:34
Joined: Oct 2005
Posts: 42
A
aslan123 Offline OP
Newbie
aslan123  Offline OP
Newbie
A

Joined: Oct 2005
Posts: 42
hi
I want to be able to change levels which I know how to do but when the next level loads the health, lives and others are restored to the values that are loaded in the first level. say i gain an extra life in level 1 and my health drops from 100 to 80, i want those values to be displayed in level 2

does anyone know how to do this

here is my current level changing code

*************************************************************************
bmap loading_lv = <newlevelload.bmp>; //Loading screen
panel loadingscreen
{
bmap = loading_lv; //loading screen name
flags = refresh,d3d;
}

function load_new_level()
{
/*wait(1);
if (EVENT_TYPE == event_impact)
{
*/
loadingscreen.pos_x = (screen_size.x - bmap_width(loading_lv))/2; //centers loading screen
loadingscreen.pos_y = (screen_size.y - bmap_height(loading_lv))/2;

loadingscreen.visible = on; //displays loading screen
wait(10);
my = null;
freeze_mode = 1;
loadingscreen.visible = off; //clears screen
bmap_purge(loading_lv);
load_level ("testlevel2.wmb"); //level name
wait(2);
freeze_mode = 0;
//}
}


ACTION levelchange //*assign this to a map entity blocking the way out of the level*/!!!!
{

//MY.INVISIBLE = ON; //makes entitie invisible
MY.ENABLE_IMPACT = ON; //enables player impact
MY.EVENT = load_new_level; //function name

********************************************************************

Re: level changing problems [Re: aslan123] #127448
04/30/07 17:46
04/30/07 17:46
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Are thoses values skills or vars?

Re: level changing problems [Re: Xarthor] #127449
04/30/07 17:49
04/30/07 17:49
Joined: Oct 2005
Posts: 42
A
aslan123 Offline OP
Newbie
aslan123  Offline OP
Newbie
A

Joined: Oct 2005
Posts: 42
value skills

here are the ones i want to carry forward

DEFINE HEALTH,skill1; //current HEALTH units
DEFINE ACORNS,skill2; //current ACORNS units
DEFINE LIVES,skill3; //current LIVES units


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