Another animation index problem

Non-platform specific questions.

Another animation index problem

Postby Freddy » Tue Aug 07, 2007 4:37 pm

I made a mouse button down event on one of my actors. In the script editor, I wrote
if(animindex == 0)
{
ChangeAnimation("Event Actor", "injuredbugleft0", FORWARD);
}
if(animindex == 2)
{
ChangeAnimation("Event Actor", "Squashedbug0", FORWARD);
}

I tried it, and the first time, it worked. I tried it again, and all it did was skip that whole first part of the script, and change its animation to the "squashed bug". I went to see if there was something else in my actor control that was preventing the script from activating, but there was nothing. :x / :evil:/ :cry: . Can anyone help me?
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: Another animation index problem

Postby Sgt. Sparky » Tue Aug 07, 2007 5:20 pm

Freddy wrote:I made a mouse button down event on one of my actors. In the script editor, I wrote
if(animindex == 0)
{
ChangeAnimation("Event Actor", "injuredbugleft0", FORWARD);
}
if(animindex == 2)
{
ChangeAnimation("Event Actor", "Squashedbug0", FORWARD);
}

I tried it, and the first time, it worked. I tried it again, and all it did was skip that whole first part of the script, and change its animation to the "squashed bug". I went to see if there was something else in my actor control that was preventing the script from activating, but there was nothing. :x / :evil:/ :cry: . Can anyone help me?

maybe use if(animindex == 1)
{
....
}
:D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Freddy » Tue Aug 07, 2007 11:22 pm

I tried that, but thanks anyway. :)
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron