nedflandeurse said:For the coding of a move, I need a way to force the landing of a move.
Is it possible to decide for a particular frame to immediatly send player to the ground.
Exemple:
Jump attack (still in air)
on 3rd frame imediatly meeting to ground without changing animation
Thanks
@script
If (frame==2 && a > base)
changeentityproperty(self,"position",NULL(),NULL(),base);
@end_script
@script
void self = getlocalvar("self");
If (frame==2 && a > base)
changeentityproperty(self,"position",NULL(),NULL(),base);
@end_script
@script
void self = getlocalvar("self");
If (frame==2 && a > base){
changeentityproperty(self,"position",NULL(),NULL(),base);
}
@end_script
Bloodbane said:Are you using new build?
O Ilusionista said:Ned, have you declared what "base" and "a" means before you call then?
void self = getlocalvar("self");
int a = getentityproperty(self, "a");
int base = getentityproperty(self, "base");
If (frame==2 && a > base)
{
bla bla bla bla
}
@script
void self = getlocalvar("self");
int a = getentityproperty(self, "a");
int base = getentityproperty(self, "base");
if (frame==2 && a > base){
changeentityproperty(self,"position",NULL(),NULL(),base);
}
@end_script