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 Discussion / object animation-can't think of anything better for a title.

Author
Message
Lover of games
20
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 14th Aug 2006 03:28
Ok, i've been wondering this: say I have a level with a door that opens when u reach a certain position. I animate this in max but i don't want to export it as two different .X files I want to export only the animation of the door and keep the door within the level. could it be done? or do I need to make the closed door one file, the animation door another and the level another? If you don't understand what I mean, let me know. and I'll explain

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 14th Aug 2006 11:57
unless it's a non-standard door, wouldn't you rotate the door, instead of animate it?
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 14th Aug 2006 12:20 Edited at: 14th Aug 2006 12:22
The easiest would be exporting open and close door in one .X file.
Then you can use the command
play object id, start, end to either open or close the door. (ie. 1 -> 20 = open door, 20 -> 40 = close door)
You can close the door or set the door open without having animation by using set object frame id, frame, which will instantly change the current frame number of the object.

If you want to save the animation separately from the file, you can try using DBC's own animation commands.

I hope it helped.

Sven B

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.

Login to post a reply

Server time is: 2025-05-25 08:39:39
Your offset time is: 2025-05-25 08:39:39