3 Replies - 3519 Views - Last Post: 16 March 2009 - 12:40 PM Rate Topic: -----

#1 Sinutam  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-January 09

Dark GDK Tutorial Problem

Post icon  Posted 08 January 2009 - 02:03 PM

I've used C++ for a lot of text based applications/games in the past and wanted to learn a little bit of the graphics side of it so I got the dark GDK, but when i did that I ran into these errors and don't know what to make of it.


error C2065: '“animatedsprite' : undeclared identifier
error C2228: left of '.png”' must have class/struct/union
type is ''unknown-type''


#include "DarkGDK.h"

void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );

dbCreateAnimatedSprite ( 1, “animatedsprite.png”, 4, 4, 1 );
dbSprite ( 1, 0, 0, 1 );

while ( LoopGDK ( ) )
{
dbPlaySprite ( 1, 1, 16, 200 );
dbSync ( );
}
return;
}


Is This A Good Question/Topic? 0
  • +

Replies To: Dark GDK Tutorial Problem

#2 revned  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 10-February 09

Re: Dark GDK Tutorial Problem

Posted 02 March 2009 - 03:31 PM

not sure what you have for sources but maybe make sure your animatedsprite.png is in your game folder and maybe change the file etxenstion
Was This Post Helpful? 0
  • +
  • -

#11 NickoTyn  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 1
  • Joined: 16-March 09

Re: Dark GDK Tutorial Problem

Posted 16 March 2009 - 06:47 AM

The problem is coming from the quotes “animatedsprite.png” should be "animatedsprite.png".
Just delete and retype the quotes, because the quotes from the pdf are different.
Was This Post Helpful? 1

#12 Hyper  Icon User is offline

  • Banned

Reputation: 108
  • View blog
  • Posts: 2,129
  • Joined: 15-October 08

Re: Dark GDK Tutorial Problem

Posted 16 March 2009 - 12:40 PM

Jan. 8th, only one post - I think he left long ago.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1