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 / help object animation

Author
Message
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 10th Apr 2005 23:33
is there a code or series of codes that can be used to detect when a object has finished playing?

thanks

kR
SpazDC
20
Years of Service
User Offline
Joined: 20th Oct 2004
Location: Hmm... Good question
Posted: 11th Apr 2005 05:19 Edited at: 11th Apr 2005 05:21
umm you need to tell it to loop or somethin! but i not too sure on how to do that.
but is it like a movie scene or in game!

give me what i want and i will go away!
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 11th Apr 2005 06:08
its in game

what i am doing is im trying to programme a turnbased battle system so when one character attacks an enemy i want the enemy to attack after and im tying to do it at first by the character attacking and once thats happened i want the other one to hit back

im trying to do it by putting a code to run once the 1st character has finished its play animation sequence.

sorry really bad explanation hope u understand

kR
vgking101
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: Virginia
Posted: 11th Apr 2005 07:33
Maybe,

while turnfinsihed = 0

keep doing this

endwhile


i think.
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 11th Apr 2005 07:53
Hi

I'm not *exactly* sure that this is what you want, but I hope it is.
You'll need to have the Goblin model and the Samurai model (which comes with DBC) placed in the same directory as the code.

Cheers!

HelloWorld Tommorrow
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 12th Apr 2005 09:18 Edited at: 12th Apr 2005 09:19
kRx,

Make use of DarkBasic's 'commands menu', within the 'help menu' and much time will be saved for you. To find the answer to your question, in DarkBasic go to Help>Commands>Basic3D, and then scroll down to the section of commands that 'return a value'. Notice that there are two commands here which can be used to aquire the information you are needing.

1) OBJECT PLAYING()
2) OBJECT FRAME()

In conclusion, do not forget to first check the 'commands menu' for commands specifically related to your problem. By doing this, rather than waiting for a problem solving reply on this forum, will save you much time. Also, each section of the 'commands menu' has commands that return a value, all at the bottom of the section.

+NanoBrain+

Login to post a reply

Server time is: 2025-05-23 08:29:59
Your offset time is: 2025-05-23 08:29:59