(02-04-2016, 07:33 AM)nhatnamyugi Wrote: I'm making a stage now, and I want to make a black screen when it start. I've seen it in some game. And I can write some text in it ex: stage 1-1, Welcome to LF2 World....
The best way to do it is:
1) In stage, create a character on the LEFT side of the stage (x: -300 for example). Preferably, this character is Bandit so as to hide the "Com". You can also use criminal to do this, but if you use criminal on its own, the stage will continue as if you've killed all enemies.
2) This character should opoint a type 3 ball with state 3005 with hit_j: 99 with a small wait. This will ensure that the ball will always be on the bottom of the z-axis AND ensures that the ball cannot be blocked by other objects, otherwise sometimes the text you want to show will sometimes be higher/lower than you want and make it possible for a character to just walk to the bottom of the stage and not be blocked by the text. Conversely, if you don't want to make a blackscreen text that blocks everything, you should use hit_j: 1.
3) After a small wait, the ball goes into
state 9997 (remember to apply dvz: 550). In this frame, you can now show the text. The reason why I told you to spawn the character creating the ball on the left is because the mainsite said that state 9997 has some problems showing sprites larger than 80px wide on the right, but I don't know if that info is accurate anymore.
You can look at
LF2_SV for an example on how this mechanic is done to create dialogue.
RN-LF2 also uses a similar system for Stage 1-1 that does exactly what you want, but its not as refined since the text tends to jump about since it doesn't use state 9997.
(02-04-2016, 07:33 AM)nhatnamyugi Wrote: And can I make the 3rd team in stage? they will attack the enemy team and player team. And the enemy will also fight with them.
If I remember correctly, weapons are independent. So what you can do is spawn a weapon in stage, which in turn opoints or transforms(state 8xxx, remember to make the _b sprites) into the character you want.
I'm not sure about the spawned character's HP if you use transform, but for the opoint method, regardless if you play on Easy/Crazy, the HP of the spawned character will always be 500.
Anyway, the biggest problem with having a 3rd team in Stage mode is that the AI will still behave as though it were in the player's team 1; the only difference is that this independent character can hit you if you get in his way. It used to be possible to select your team in LF2 (back in version 1.7), and this behavior must have been left over.