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 / have a problem

Author
Message
koolaid
21
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Cyberspace
Posted: 17th Feb 2003 11:34
im having trouble appending more than one animation to a object. i want the "enemy" to shoot at me (which requires its attack animation) when i get in a certain distance from it or else just remain idle thanks !
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 17th Feb 2003 16:46
append object animation Model$,AnimFile$,Object,StartFrame

Where Model$= the original file you animated
AnimFile$= the animation data
Object= number of object you want to animate
StartFrame= the first frame of the animation you
want to append.

For example, the object number of the enemy is 1, the idle animation is called IdleAnim.dat and is 10 frames long and the attack animation is called Attack.dat and is also 10 frames long. You would then use

which puts the idle animation from frame 1-10.

which puts the attack animation from frame 11-20.
Then, to play either animation you would use play object animation 1,startingframe,endingframe

Whatever I did I didn't do it!
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 17th Feb 2003 17:21
Then just have : inbetween appendations (thats not a real word but oh well )

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!

Login to post a reply

Server time is: 2024-05-19 22:38:02
Your offset time is: 2024-05-19 22:38:02