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 / Animation interpolation

Author
Message
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 5th Apr 2013 15:04
Hi all,
I am trying to play an object's animation such that it moves smoothly between walking, idling, attacking etc...

I have tried "Append object" followed by "Set object interpolation" but it doesn't work.

I have tried simply playing from a certain frame to another frame (e.g. "Loop object 1,25,50") for a particular animation (walking/idling etc...) but that doesn't work either.

Having already searched the forum and the stock DBP examples, I would much appreciate some help on how to do this.

Cheers!

Hello World Tommorrow
Sergey K
21
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 5th Apr 2013 15:14
u cant move smoothly between animation if your animations are inside the .x model

you could use Advanced Animations for dbp for that
or there is another way; by setting a stand animation keyframe as 1st frame on each animation you make.
the animation will look like that

Walk file:
0 frame is the STAND animation
1 to 20 (repeatable) is the walk animation

Run file:
0 frame is the STAND animation
1-20 (repeatable) is the RUN animation

that way when you moving from walk to run, you always will reach the STAND frame that changes your animation smoothly to whatever you want from it.

Advanced Updater for your games!
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 5th Apr 2013 17:26
many thanks Sergey K

Hello World Tommorrow
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 6th Apr 2013 15:17
For others who stumble on this thread:

I found this example from DarkBasic Classic:



Hello World Tommorrow

Login to post a reply

Server time is: 2025-05-17 15:54:11
Your offset time is: 2025-05-17 15:54:11