Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Self made animation target system is making my brain melt...

Author
Message
flibX0r
23
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 3rd Jun 2003 15:36
Okay - I made a set of funstion that can do animation targeting for our elephant character. It sets up an array of values like so:



The variable is global and this part works all good and well. And yes, all the anim_state_whatever variables have been set and they work.

I then have another function that does that sets the animation and changes animation states when needed. Note: The model file loaded contains all the animations - the frame numbers are hard coded.The function is as follows:



Then i run the function in the main loop like this:



But it doesn't work. It is supposed to go from walking to walk2stand to idle, but it doesn't. Can anyone nitpick my (rather messy) code and help me find the error in my ways?
"But we couldn't do that Mr Flibble," questioned Rimmer. "Who'd clean up the mess?"
Twin P4 Xeon 2.0 Ghz, GeForce Quadro4 XGL 128MB, 1Gb DDR RAM, Twin 19" Flat Screens
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 3rd Jun 2003 18:09 Edited at: 3rd Jun 2003 18:10
I took a look at your code and decided my head hurts too much at the moment to consider debugging it, here's a simpler alternative.


Pneumatic Dryll
flibX0r
23
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 4th Jun 2003 14:13
That really doesn't answer the question. The reason i did it my way is because i need to have animation targets. In other words, when you go from a walk anim to a standing anim, you don't go straight from walk to stand; you go from walking to walk2stand and from walk2stand to idle. Thats why i did it my way.

Thnx for the idea though

"But we couldn't do that Mr Flibble," questioned Rimmer. "Who'd clean up the mess?"
Twin P4 Xeon 2.0 Ghz, GeForce Quadro4 XGL 128MB, 1Gb DDR RAM, Twin 19" Flat Screens
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 4th Jun 2003 18:37


Pneumatic Dryll

Login to post a reply

Server time is: 2026-07-11 19:44:39
Your offset time is: 2026-07-11 19:44:39