Post by vyckstjudas on Dec 15, 2012 0:36:33 GMT -5
Bonus Level: By Bloodbane
Intro: In some games like Final Fight, there are 2 bonus stages where player destroy car or glasses until time runs out or until car is fully wasted or all glasses are shattered. Bonus levels are great way to give break to players from beating enemies. This kind of levels can be made in OpenBoR.
However, this tutorial only explains how to set a level into a time limited level. The content of the level won't be explained and so does the bonus tallying at the end. Content of level could be anything from destroying drums or car, knocking bikers to a race. For bonus tallying, script is the only way to make it currently.
Procedure: First of all, you need to make a normal level. Then add this in the header:
Quote
type 1 0 0
With this setting, the level will turn into time limited level. It's not fully time limited though cause it could end by other means. These events could end this level:
1. Time runs out
2. No more obstacles in level
3. No more items in level
4. Defeat of boss(es)
5. No more enemies in level
6. Touching endlevel or branch entity
Let's exclude #4, #5 and #6 for now since they work like that in normal level too. The most important event is #1 cause that's the main idea here. #2 and #3 are available to make level ends if there aren't anything else to destroy or to pick in the level. Assuming the bonus level is Obstacle Smash or Items Party that is.
#1, #4 and #5 have high priority so even though there are still obstacles, items or enemies in level, level will end if any of the former occurs.
Anyways, setting 'type' above is enough to make bonus level. You can spawn many obstacles in here for Obstacle Smash or spawn items for Items Party.
When time runs out, level ends and next level will be played. Don't worry about it cause unlike normal level, players won't be killed.
Issue: Actually the other 2 parameters in 'type' was meant to support bonus stage. 2nd parameter disables SPECIAL, SPECIAL2 and SPECIAL3 while the 3rd one gives invincibility to players. Previously they are working fine but both aren't working properly currently.
Both are solvable with script though.
Extra: Bonus level can be turned into Endless level where players could stay there endlessly or IOW stuck in that level. To make it, you have to avoid #1, #4 and #5 above. IOW:
1. Set time to 0 (and 'notime 1' to hide it)
2. Don't spawn enemy or at least don't set boss to any enemy at all
3. Don't spawn endlevel or branch entity
Also, you'll need to make dummy obstacle to prevent level from ending because of absence of obstacle. The obstacle could be like this:
Quote
name Empty
health 10
type obstacle
shadow 0
anim idle
delay 100
offset 1 1
frame data/chars/misc/empty.gif
anim fall
delay 100
offset 1 1
frame data/chars/misc/empty.gif
Dont' forget to load it in models.txt!
Spawn this entity in a bonus level with above settings and voila! the level becomes endless level.
Oh in case you don't know how to get out from this level, just press start to quit the game.
Intro: In some games like Final Fight, there are 2 bonus stages where player destroy car or glasses until time runs out or until car is fully wasted or all glasses are shattered. Bonus levels are great way to give break to players from beating enemies. This kind of levels can be made in OpenBoR.
However, this tutorial only explains how to set a level into a time limited level. The content of the level won't be explained and so does the bonus tallying at the end. Content of level could be anything from destroying drums or car, knocking bikers to a race. For bonus tallying, script is the only way to make it currently.
Procedure: First of all, you need to make a normal level. Then add this in the header:
Quote
type 1 0 0
With this setting, the level will turn into time limited level. It's not fully time limited though cause it could end by other means. These events could end this level:
1. Time runs out
2. No more obstacles in level
3. No more items in level
4. Defeat of boss(es)
5. No more enemies in level
6. Touching endlevel or branch entity
Let's exclude #4, #5 and #6 for now since they work like that in normal level too. The most important event is #1 cause that's the main idea here. #2 and #3 are available to make level ends if there aren't anything else to destroy or to pick in the level. Assuming the bonus level is Obstacle Smash or Items Party that is.
#1, #4 and #5 have high priority so even though there are still obstacles, items or enemies in level, level will end if any of the former occurs.
Anyways, setting 'type' above is enough to make bonus level. You can spawn many obstacles in here for Obstacle Smash or spawn items for Items Party.
When time runs out, level ends and next level will be played. Don't worry about it cause unlike normal level, players won't be killed.
Issue: Actually the other 2 parameters in 'type' was meant to support bonus stage. 2nd parameter disables SPECIAL, SPECIAL2 and SPECIAL3 while the 3rd one gives invincibility to players. Previously they are working fine but both aren't working properly currently.
Both are solvable with script though.
Extra: Bonus level can be turned into Endless level where players could stay there endlessly or IOW stuck in that level. To make it, you have to avoid #1, #4 and #5 above. IOW:
1. Set time to 0 (and 'notime 1' to hide it)
2. Don't spawn enemy or at least don't set boss to any enemy at all
3. Don't spawn endlevel or branch entity
Also, you'll need to make dummy obstacle to prevent level from ending because of absence of obstacle. The obstacle could be like this:
Quote
name Empty
health 10
type obstacle
shadow 0
anim idle
delay 100
offset 1 1
frame data/chars/misc/empty.gif
anim fall
delay 100
offset 1 1
frame data/chars/misc/empty.gif
Dont' forget to load it in models.txt!
Spawn this entity in a bonus level with above settings and voila! the level becomes endless level.
Oh in case you don't know how to get out from this level, just press start to quit the game.