animindex doesn't work in exported version

Non-platform specific questions.

animindex doesn't work in exported version

Postby jimmynewguy » 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
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?
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: animindex doesn't work in exported version

Postby makslane » Fri Jul 23, 2010 12:23 am

Cant see the problem here.
Can you create a little game thats show the problem and post it here?
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: animindex doesn't work in exported version

Postby jimmynewguy » Fri Jul 23, 2010 3:43 am

Well that's odd, it doesn't seem to be doing it anymore. Maybe there was something more to it in the game...oh well thanks any ways mak :)
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: animindex doesn't work in exported version

Postby Bee-Ant » Fri Jul 23, 2010 5:35 am

If you get problem with animindex, I get problem with function.
I can't call function in Create Actor in exported game, while in the editor mode, i could....
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest