Page 1 of 1

Clone, or maybe animindex...problems with exe

PostPosted: Mon Jul 11, 2011 3:58 am
by jimmynewguy
So I have a game I'm making (completely over-the-top) called awesome man and it's like a beat em' up game. Everything works fine in the editor but when I export the game the enemies are constantly attacking and not changing animations at all.

So my question is, are there any known problems with clones or using switch(animindex) when exported? Maybe my code is a little long at 106 lines for the enemy AI and collision system, but the enemies do have decent AI, 3 attacks, and 11 animations each. I'm not saying I'm the best coder in the world but everything I see should work since others use clones and I'm sure animindex in exported games and it doesn't seem to be effect them.

Anyway, hope someone knows something. At least a "yup those things don't work right when exported" so I know I'm not crazy. And P.S you should watch the random youtube video for this game I have in my signature! :P

Re: Clone, or maybe animindex...problems with exe

PostPosted: Mon Jul 11, 2011 4:20 am
by skydereign
The only animation problem with clones (in 1.4) is when you use sequences as far as reported problems. I'd have to see how the ai works, but from the error it sounds like your system is using something that editor mode takes for granted, that isn't there in the exported version. Kind of like the cloneindex problems when exported. What could be happening much like the cloneindex or textNumber problems, is that the order of the animations are different when you export it. I rarely use animindex like that, as I always have an actor variable state that holds the same thing. On an unrelated note, nice choice in music.

Re: Clone, or maybe animindex...problems with exe

PostPosted: Mon Jul 11, 2011 4:33 am
by jimmynewguy
AHA! Maybe it is sequences, all the animations are sequences of one main one. Thanks sky, I'll try to change that.

EDIT: Okay....weird. I think the actors are glitched. If I try to add a new animation to them it vanishes.. I'll try deleting the actor and starting over

Re: Clone, or maybe animindex...problems with exe

PostPosted: Mon Jul 11, 2011 5:13 am
by jimmynewguy
Alright, deleted the enemies and remade them. Same exact codes but this time without using sequences. Exported it and works like a charm. :)