Page 1 of 1
Animation events.
Posted:
Wed Feb 16, 2005 12:25 pm
by Dark RyNo
Is there any way of making it so that if my actor has animation "left"
then when I press space it creates actor "ballleft"
and if he has animation "right" it creates "ballright"?
Is that possible?
Posted:
Wed Feb 16, 2005 3:03 pm
by dab
you could create a variabel in script, then on the animationchange the value is 1 for rigth and 0 for left.
- Code: Select all
if(variabel == 1)
{
CreateActor("baalright", "icon", "no parent", "no path", 0, 0, false);
}
if(variabel == 0)
{
CreateActor("baalleft", "icon", "no parent", "no path", 0, 0, false);
}
Posted:
Wed Feb 16, 2005 7:26 pm
by Dark RyNo
Thanks that was perfect.
That also let me figure out loads of other problems.
Posted:
Wed Feb 16, 2005 9:38 pm
by makslane
use the animindex variable to detect the current acnimation