animindex doesn't work in exported version
Posted: Thu Jul 22, 2010 8:17 pm
In game mode my game runs perfectly fine, but when exported it does not. The code that has the problem is this
when changed to this it works fine
I don't understand what the problem is walkr is the 1 animation, the 0 is player. Guess it's just a bug?
- Code: Select all
if(animindex==1)
ChangeAnimation("Event Actor", "walkl", FORWARD);
else
ChangeAnimation("Event Actor", "walkr", FORWARD);
when changed to this it works fine
- Code: Select all
if(animindex==getAnimIndex("walkr"))
ChangeAnimation("Event Actor", "walkl", FORWARD);
else
ChangeAnimation("Event Actor", "walkr", FORWARD);
I don't understand what the problem is walkr is the 1 animation, the 0 is player. Guess it's just a bug?