thanks
ive removed the (-) from the else if but i think... there is still one (a) value he doesnt detect
checkpoint detects player up
@cmd attack2 -130 130 -50 50 "ANI_FOLLOW1"
grenade spawner detects player down
@cmd attack2 -250 250 -220 0 "ANI_FOLLOW1"
i have one checkpoint in the level that doesnt disapears when the player falls down and touchs it... also it doesnt disapears when the player is below it....
iam pretty confused so i cant explain very well....
the level spawning point is a bit diferent from the drawing above
i couldnt make a platform in that angle so ive made a move in player spawn anim so he could move and fall down
anim spawn
loop 0
delay 200
offset 121 165
bbox 0 0 0 0
landframe 1
frame data/chars/1ryo/de05.gif
delay 10
@cmd dasher 1.4 0 0
frame data/chars/1ryo/ju02.gif
frame data/chars/1ryo/ju03.gif
frame data/chars/1ryo/ju04.gif
frame data/chars/1ryo/ju05.gif
frame data/chars/1ryo/ju06.gif
frame data/chars/1ryo/ju03.gif
frame data/chars/1ryo/ju04.gif
frame data/chars/1ryo/ju05.gif
frame data/chars/1ryo/ju06.gif
delay 230
frame data/chars/1ryo/th02.gif
anim walkoff
loop 0
delay 12
offset 121 201
bbox 101 111 39 84
@cmd stop
frame data/chars/1ryo/ju07.gif
i think the way of making the PLR2 spawn i simple have to add the respawn script to spawn anim
anim respawn
@script
void self = getlocalvar("self");
int x = getindexedvar(0); //Get respawn x coordinate
int z = getentityproperty(self,"z"); //Get character's z coordinate
int a = getindexedvar(1); //Get respawn a coordinate
if(x==NULL()){
x = getentityproperty(self, "x");
}
setentityvar(self, 7, NULL());
if(a!=NULL()){
if(frame > 0){
changeentityproperty(self, "position", x, z, a);
}
}
@end_script
delay 1
offset 121 201
bbox 0 0 0 0
frame data/chars/1ryo/de06.gif
delay 40
frame data/chars/1ryo/de06.gif
but add a line of code that detects if the player joins the level and changes the spawn anim to respawn anim so it doesnt make that fall move in the benning of the level...
the PLR1 touches the checpoint right after spawnning in the level.... so PLR2 would spawn there with respawn anim if he joins the level...
if PLR2 is already entering the level from previous level he would make spawn anim with the fall move....
is it possible to make it like this...??
or is there a better way...?