Animation events.

Talk about making games.

Animation events.

Postby Dark RyNo » Wed Feb 16, 2005 12:25 pm

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?
Dark RyNo
 
Posts: 35
Joined: Tue Feb 08, 2005 7:04 pm
Score: 0 Give a positive score

Postby dab » Wed Feb 16, 2005 3:03 pm

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);
}




mum destroyed my computer by deleting files in sysrtem32!
dab
 
Posts: 8
Joined: Sun Feb 06, 2005 10:12 am
Score: 0 Give a positive score

Postby Dark RyNo » Wed Feb 16, 2005 7:26 pm

Thanks that was perfect.
That also let me figure out loads of other problems.
Dark RyNo
 
Posts: 35
Joined: Tue Feb 08, 2005 7:04 pm
Score: 0 Give a positive score

Postby makslane » Wed Feb 16, 2005 9:38 pm

use the animindex variable to detect the current acnimation
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest