aL BeasTie
Well-known member
LINK TO SOLUTION
http://www.chronocrash.com/forum/index.php?topic=1085.msg30486;topicseen#new
-----------------
I was trying to make a basic way to restart the current stage on death, I set up branches and named them 1 and 2 - then I have this script in player's death.
I have stagenumber # set in the levels.
It kinda works except it just seems to jump to whatever the next level in the set is, not the branch I want.
The level.txt is something like
It will just go test, 1, 2 and then end
http://www.chronocrash.com/forum/index.php?topic=1085.msg30486;topicseen#new
-----------------
I was trying to make a basic way to restart the current stage on death, I set up branches and named them 1 and 2 - then I have this script in player's death.
Code:
@script
int iStage = openborvariant("current_stage");
if(frame == 4){
jumptobranch("iStage", 1);
}
@end_script
I have stagenumber # set in the levels.
It kinda works except it just seems to jump to whatever the next level in the set is, not the branch I want.
The level.txt is something like
Code:
set TEST
file data/levels/test.txt
branch 1
file data/levels/1.txt
branch 2
file data/levels/2.txt
It will just go test, 1, 2 and then end