Page 1 of 1

animindex read-only

PostPosted: Thu Jul 31, 2008 5:58 am
by Kalladdolf
It's kinda sad, could you make that a normal variable (like animpos), since it's annoying to change every animation with the ChangeAnimation action, or is there any other way? *shot*

Re: animindex read-only

PostPosted: Thu Jul 31, 2008 8:28 am
by feral
Agreed - very good idea...

I assume you want to say something like

animindex=6
or animindex="fire"

if so I may work on a function for this..

but I still agree, it would be nice to be built into the script language.. I don't know how many times I have started to type animindex=

then went DOH!! :?

Re: animindex read-only

PostPosted: Thu Jul 31, 2008 8:37 am
by Kalladdolf
heh same here ^^

Re: animindex read-only

PostPosted: Thu Jul 31, 2008 5:56 pm
by Fuzzy
Its noy so straight forward. the animindex is actually a pointer and isnt necessarily contiguous in memory. That is, The computer doesnt store them as 1 2 3 4...

Re: animindex read-only

PostPosted: Thu Jul 31, 2008 6:45 pm
by Kalladdolf
well, you could make this work if you made a variable and if the animindex was not equal to it then ChangeAnimation...
but you'd have to assign an animation to every number and that gets quite annoying T_T

Re: animindex read-only

PostPosted: Fri Aug 01, 2008 12:06 am
by feral
I came up with a variety of solutions to this, and posted them in the advanced section - so, I deleted my other posts here to keep them all together in the right section

see viewtopic.php?f=5&t=5999

Re: animindex read-only

PostPosted: Sat Aug 02, 2008 1:15 pm
by Thanx
The reason I think this isn't something that is easily done, is because there's another thing involved: animstate (forward, backward, no_change, stopped). Which isn't in the form of an open variable/constant type of thing.
So I like the idea otherwise, but I think that then there should be an animstate variable so that we still have the same control over the animations!
:wink:

Re: animindex read-only

PostPosted: Sat Aug 02, 2008 8:30 pm
by feral
Thanx wrote:The reason I think this isn't something that is easily done, is because there's another thing involved: animstate (forward, backward, no_change, stopped).


FIXED ! :D (they appear to be #defines )
see viewtopic.php?f=5&t=5999&p=41893#p41893


feral

Re: animindex read-only

PostPosted: Tue Aug 05, 2008 8:36 am
by Thanx
OK, I didn't say ANYTHING! lol :D :lol: :mrgreen: :wink:
Great idea, cool stuff!