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.

Dark GDK / [GDK] Dark Ai - Entity Action

Author
Message
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 1st Sep 2013 06:23
Before in Dbpro, When doing animations along side "Dark Ai"
I would use something like the following.



Now looking through the documents in gdk I did find the same commands.
but I am a little confused on the way functions are setup do I have to call it with a void at the start of the program as well as call it in the loop

also could someone point me into the right direction of some documentation on how to do loops like n = x to xx

Thank you

======================================
My software never has bugs. It just develops random features.
TimmyTopHat
11
Years of Service
User Offline
Joined: 29th Aug 2013
Location:
Posted: 1st Sep 2013 09:36
When using DGDK's libraries, you do not have to call their prototype. You just call the function in the code. Here's an example of both of your questions rolled up in one. Efficiency!

*It's been a while since I touched DGDK, so please excuse my inability to remember the function names EXACTLY...

#include "darkGDK.h" // or whatever it's called.

// you do NOT have to define the function here. You just use it.

while ( true ) // and endless loop. Whee.
{

// this is how FOR loops are implemented in C++
for ( int n = 8115; n < 8120; n++ )
{
// use the function that is defined in DarkGDK's header
if ( dbObjectExists(n) )
{
if ( animationplaying(stopped) ) //totally not a DGDK function

}
}

break;

}

return 0;

Indie Programmer - DirectX 11
TimmyTopHat
11
Years of Service
User Offline
Joined: 29th Aug 2013
Location:
Posted: 1st Sep 2013 09:38
Gaah. Browser posted my response before I was done. I'll correct it when it appears. (Still subjected to the darn approval process )

Indie Programmer - DirectX 11
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 2nd Sep 2013 16:19
Thank u for the reply

for ( int n = 8115; n < 8120; n++ )

Was the main thing I could not figure out tried similar things close to it but did not work Thank you again

======================================
My software never has bugs. It just develops random features.

Login to post a reply

Server time is: 2024-11-18 21:47:22
Your offset time is: 2024-11-18 21:47:22