I made a new stage and whenever I spawn a entity they fall from the sky but I cant figure out why can anyone help ?
msmalik681 said:just needed as spawn animation :![]()
O Ilusionista said:msmalik681 said:just needed as spawn animation :![]()
Indeed. Its what nodropspawn controls too.
msmalik681 said:how would I use this ?
if(validanim(e, ANI_SPAWN) || validanim(e, ANI_RESPAWN))
{
e->takeaction = common_spawn;
}
else
{
dodrop = (e->modeldata.subtype != SUBTYPE_ARROW && e->modeldata.subtype != SUBTYPE_BOOMERANG && level && (level->scrolldir == SCROLL_UP || level->scrolldir == SCROLL_DOWN));
if(!nodropspawn && (dodrop || (e->position.x > advancex - 30 && e->position.x < advancex + videomodes.hRes + 30 && e->position.y == 0)) )
{
e->position.y += videomodes.vRes + randf(40);
}
if(inair(e))
{
e->takeaction = common_drop;
if(validanim(e, ANI_JUMP))
{
ent_set_anim(e, ANI_JUMP, 0);
}
}
}
msmalik681 said:This is something we modders should have as a option to disable.
Exactly. Its the faster way to do it.The SPAWN animation IS how you disable default spawning behavior.
spawn enemy
coords 250 220 1
at 10