maxman
Well-known member
I'm using v3 6391 and direction 'both' really works when the player respawns after dying (without anim respawn). But when I use direction leftright and all of a sudden, the player dies with 3 lives above the ground, after spawning at the center in the very beginning. The engine bug kills the player from respawning. Therefore, it results to losing one credit and each time you press start for continuing, it kills you again until you run out of credits and then game over.
Here's the respawn entity where player respawns from.
In one level, here I respawn with this. Both is no problem, but leftright.
I don't understand how that respawn thing doesn't work well with leftright. How can the respawning issue be resolved for leftright to work?
Here's the respawn entity where player respawns from.
C:
name Respawn
type none
offscreenkill 3000
antigravity 100
anim idle
@script
void self = getlocalvar("self");
int x = getentityproperty(self,"x");
int a = getentityproperty(self,"a");
setindexedvar(0, x);
setindexedvar(1, a);
killentity(self);
@end_script
loop 1
delay 5
offset 1 1
frame data/chars/misc/empty.gif
In one level, here I respawn with this. Both is no problem, but leftright.
C:
spawn Respawn
@script
void main()
{
void P1 = getplayerproperty(0, "entity");
changeopenborvariant("xpos", 580);
changeopenborvariant("ypos", 2000);
changeentityproperty(P1,"position", 740, NULL(), 1);
changeentityproperty(P1,"direction", 0);
}
@end_script
coords 740 2137 1
flip 1
at 0
I don't understand how that respawn thing doesn't work well with leftright. How can the respawning issue be resolved for leftright to work?