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.

Newcomers DBPro Corner / Adding animation to an object..

Author
Message
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 17th Feb 2005 09:16 Edited at: 1st Jul 2009 09:12
1

Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 17th Feb 2005 12:08
u add it in a different program than DBP, such as a modeling program or an animation program.
Quote: "Location: Tx. "

Im assuming that stands for Texas, USA, if it does i live there too

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 18th Feb 2005 00:36 Edited at: 1st Jul 2009 09:12
2

Clueless
20
Years of Service
User Offline
Joined: 16th Feb 2004
Location: Corbin, KY, USA
Posted: 18th Feb 2005 10:50
You want the starting and ending frame numbers of the two animations. The play animation command will take a starting and ending frame as arguments and only play those.

If you don't have any other means of determining what those frame numbers are (like a help file with the object) you can write a simple program to play from frame # 1 up to another frame number held in a variable. Maybe a bit of code to add 1 to that variable when the "+" key is pressed, subtract one when "-" is pressed, and play the animation when space is pressed. that'll let you explore the animations.

If you do this, make sure to check for IS PLAYING() = 1 when you press the key to begin the animation. Don't play if it's already playing -- the computer reads the keyboard far faster than you can get your finger off the key, and you'll end up with a jerkey replaying of the first few frames of the animation in that time. (same thing with PLAY SOUND on a keypress, often gives a "machine gun" effect to what's intended to be a single pistol shot).
ADGamer
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location:
Posted: 19th Feb 2005 07:38 Edited at: 1st Jul 2009 09:12
3

Login to post a reply

Server time is: 2024-11-11 23:42:31
Your offset time is: 2024-11-11 23:42:31