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 / Play Animation To Image not doing what I want it to

Author
Message
Mr Snuggles
18
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 13th Jul 2005 06:16
This code

creates a big black screen with nothing playing on it. I've checked that the animation is in the right place, I added some controls to move around the screen and look at it from all sides but still it doesn't work. Any help?

ooo isn't that precious
Mike Johnson
TGC Developer
20
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 13th Jul 2005 07:22
From your call to dbLoadAnimation you are using an ID number of 6 yet in the call to dbPlayAnimationToImage you reference ID number 52 to access the width and height of the animation. I'm suspecting that those values will be returning 0, 0 as your animation is loaded with an ID of 6. If this is the case then the rectangle for drawing the animation is going to be non existent. Try changing this so it uses dbAnimationWidth ( 6 ) and dbAnimationHeight ( 6 ).
Mr Snuggles
18
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 13th Jul 2005 17:15
*feels really stupid* Ok, I fixed the id numbers, but still it doesn't play the animation onto the plane. It's just black.

ooo isn't that precious
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 13th Jul 2005 17:24
This works fine :



George "Dubya" Bush says: 'I play AtomZ to keep my brain supple. Here it found be:http://homepages.nildram.co.uk/~nickk'
http://spaces.msn.com/members/BouncyBrick/
Mr Snuggles
18
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 20th Jul 2005 16:13
I think the problem may be that I'm using Visual Studio 6 without the dgsdk update.

ooo isn't that precious
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 16:16
Certainly possible

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/

Login to post a reply

Server time is: 2023-02-06 19:55:58
Your offset time is: 2023-02-06 19:55:58