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 / dbCloneObject returns error!

Author
Message
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 19th Feb 2009 23:22
Hi!

dbCloneObject returns this error



Help?

Keep it simple.
Questions? Mail me
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th Feb 2009 23:57
It looks like an error in either the .lib file, or the header.

It appears that the function you want is called dbCloneShared - just declare this in an appropriate header file and use it instead of the 3 argument version of dbCloneObject:


Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 20th Feb 2009 00:11
Oh, thanks, will try

Keep it simple.
Questions? Mail me
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 20th Feb 2009 11:31


Well, got the animation loaded right and cloning the object works perfect(with the anmimation data). The problem is that the code above looks some what newbies, there got to be an other way to do this. Any suggestions?

Keep it simple.
Questions? Mail me
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 20th Feb 2009 13:06
Not entirely sure what you are asking, but if you want a better way I would replace isWalking with a value saying what it is doing, assuming your object cannot be doing multiple things. Make an enumeration containing all the things the object could be doing.
Eg:

then maybe make
objAction Stats.action;
and use a switch statement to decide what animation to use:
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 20th Feb 2009 15:05
Yea, but what if I implent Enhanced Animations(multiply animations at the same time on the same object) and I want the unit(it is an RTS game) to run and shoot at the same time?

Thats why I got a boolean for each.

Keep it simple.
Questions? Mail me

Login to post a reply

Server time is: 2024-11-25 15:39:16
Your offset time is: 2024-11-25 15:39:16