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 / My animation wont loadddd?

Author
Message
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 13th Apr 2009 14:47 Edited at: 14th Apr 2009 04:38
I want these guys(from the dark matter models pack that comes with the GDK) to animate, they work fine in the directX viewer, but not in my game. Heres my code:


any help would be appreciated
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 15th Apr 2009 01:03 Edited at: 15th Apr 2009 01:03
You have in all of you loading commands "folderfile" the problem is, is that you forgot the 2nd "".
So for example:

should be:


I'm poetry in motion
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 15th Apr 2009 02:12
Those are both the same lol, but i figured it out anyway, i had to put dbPlayObject and dbLoopObject outside LoopGDK.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 15th Apr 2009 03:05
Well they aren't both the same (one there is 1 "\" and the other there is 2) but it's good that you figured it out anyway!

I'm poetry in motion
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 15th Apr 2009 03:06 Edited at: 15th Apr 2009 03:09
Darn. Beaten to it.

No they are different. Any character followed by a '\' is called an escape character. It tells the program to do certain things in a string. In the following line from your program:

The 'H' is treated as an escape character. If you want to actually put a '\' in a string, you have to use '\\' which is also an escape character. So heyufool1 is right, you need to change those to have double backslashes like this:


#ifdef _DEBUG
FixBugs(All);
#endif
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 15th Apr 2009 07:02
Thanks guys, &Bran flakes91093, i love your signature, if only it was possible

#ifdef _IN_AWESOME_LAND
#Bran flakes91093's sig
#endif

Login to post a reply

Server time is: 2024-09-30 23:31:28
Your offset time is: 2024-09-30 23:31:28