dantedevil
Well-known member
First to all, I read this tutorial:
http://www.chronocrash.com/forum/index.php?topic=31.msg86#msg86
This is the first time I'm work with Branches and can't undestand how really works.
I have a level with two branchs in the end:
This branches appears when all enemies are dead.
The branches are:
GO_4-2 to the stage4-2 and GO_4-2b to the stage 4-2b
When touch the branches, both lead me to the level stage4-2.
Here the file of the two brances:
And here the set in levels.txt:
What am I doing wrong?
I watched as they did in the mod Crime Buster and Golden Axe and Legend, but frankly do not understand.
http://www.chronocrash.com/forum/index.php?topic=31.msg86#msg86
This is the first time I'm work with Branches and can't undestand how really works.
I have a level with two branchs in the end:
Code:
group 1 1
at 2020
spawn GO_4-2
@script
void main()
{
void self = getlocalvar("self");
changeentityproperty(self, "position", 2330);
}
@end_script
coords 325 215
at 2020
spawn GO_4-2b
@script
void main()
{
void self = getlocalvar("self");
changeentityproperty(self, "position", 2475);
}
@end_script
coords 460 270
at 2020
The branches are:
GO_4-2 to the stage4-2 and GO_4-2b to the stage 4-2b
When touch the branches, both lead me to the level stage4-2.
Here the file of the two brances:
Code:
name GO_4-2
type endlevel
shadow 0
branch Stage4-2
anim idle
loop 0
delay 10
offset 76 150
bbox 65 106 21 44
frame data/bgs/branches/arrow_up.png
Code:
name GO_4-2b
type endlevel
shadow 0
branch Stage4-2b
anim idle
loop 0
delay 10
offset 61 64
bbox 65 106 21 44
frame data/bgs/branches/arrow_right.png
And here the set in levels.txt:
Code:
z 215 270 215 #4-1
file data/levels/stage4-1.txt
next
branch GO_4-2
z 233 270 233 #4-2
file data/levels/stage4-2.txt
branch GO_4-2B
z 200 270 200
file data/levels/stage4-2b.txt
next
z 215 270 215 #4-2
file data/levels/stage4-3.txt
next
What am I doing wrong?
I watched as they did in the mod Crime Buster and Golden Axe and Legend, but frankly do not understand.