Spawning with a variable "seta"

Birnbaum

Member
I made spawn/respawn animations with  seta 400 for stages with 360 pixels of height but I included a new stage with a height of 720 pixels and some basemaps with heights between 300 and 600 pixels of height.The inconvenience is the players dont respawn "falling" and sometimes inside the ground.I tried increase the value of seta for 800 but it affects the stages with high height causing a little and annoing delay.How could I solve or adjust this to work fine on all stages?
Thanks for your atention.
 
is more recommended make a spawnscript, add the code in the level file or inside the spawn animation?

For spawn, I suggest using script to directly alter player's spawn altitude at start of level, using script like this:
Code:
spawn   empty
@script
void main()
{
    int P1 = getplayerproperty(0, "entity");
    int P2 = getplayerproperty(1, "entity");

    if(P1){
      changeentityproperty(P1, "position", 50, 200, 60);
    }
    if(P2){
      changeentityproperty(P2, "position", 50, 230, 60);
    }
}
@end_script
coords  1200 200
at	0

You can also use this script to put camera below for tall levels

As for respawn, that could tougher cause the terrain might not be the same at where player respawns. Ilu's suggestion might work
 
@OIlusionista
All right. Thanks.

@Bloodbane
I´m using this type of customized spawning.The problems ocurring more frequently on respawns in the mid of stages with high altitudes and varable basemaps.
I´ll try the OIlusionista´s suggestion.
The camera type suggestion could be an alternative solution.
Thanks.

 
Back
Top Bottom