Delay End Level

goku shackson

New member
Hi everyone, I’m back with another question. I’m looking for a solution or an explanation for this issue I’ve been having since I started modding OpenBOR games—specifically regarding level creation. I hope my explanation makes sense:
When I’m creating a level and finish off the last enemy (not a boss), the scene ends almost instantly—either before the death animation fully plays out or just a microsecond after it happens—cutting straight to black and moving to the next scene. The issue is that in other mods—like *Rocket Viper*, *KOF Beat 'Em Up*, etc.—the enemies finish dying, there’s a pause of 2 or 3 seconds, and *then* the next scene starts or the screen fades to black. It might be an issue with the `at` or `wait` commands, which I haven't quite mastered yet. I wanted to know if anyone else has experienced this and how I might fix it, since it happens to me every time. Thanks in advance!
 
When I’m creating a level and finish off the last enemy (not a boss), the scene ends almost instantly—either before the death animation fully plays out or just a microsecond after it happens—cutting straight to black and moving to the next scene. The issue is that in other mods—like *Rocket Viper*, *KOF Beat 'Em Up*, etc.—the enemies finish dying, there’s a pause of 2 or 3 seconds, and *then* the next scene starts or the screen fades to black. It might be an issue with the `at` or `wait` commands, which I haven't quite mastered yet. I wanted to know if anyone else has experienced this and how I might fix it, since it happens to me every time. Thanks in advance!
I don't know if I understood correctly, is the problem related to how fast the level ends after the last enemy is defeated, or related to the level finishing before all enemies are defeated?

In the first case, I suggest checking the functions falldie and nodieblink in your enemy characters, as well as their death animations.
Depending on how they are configured, it can affect the level transition as soon as the last enemy is defeated.

1789333704511.png

1789333726295.png
 
That is exactly the first thing I was referring to, but how should I modify those two commands to stop that from happening? Also, I was looking into a script called "endlevel"; if I add it to my mod, will it have any effect on the problem I mentioned?
 
Back
Top Bottom