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 / Simple Question on first tutorial

Author
Message
mwesch
16
Years of Service
User Offline
Joined: 1st Mar 2008
Location:
Posted: 1st Mar 2008 15:17
This is a total n00b question because i'm completly new to programming and i'm sorry that its so simple compared to the other questions on this board.

Right on the first tutorial (01 getting started i get to the part where "We now have our image on screen but it isn’t quite right" and after that visual c++ says i have a error in my build when i follow all the instructions

here is the code i'm using.

// Dark GDK - The Game Creators - www.thegamecreators.com

// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application

// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"

// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );

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

// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbPlaySprite ( 1, 1, 16, 200 );
dbSync ( );
}

// return back to windows
return;
}


This is really annoying me and thank you for any help you can give
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 1st Mar 2008 18:55
dbCreateAnimatedSprite ( 1, "animatedsprite.png", 4, 4, , 1 );

You can see that you have 2 comma just after eachother.. You need a value there.

Niels Henriksen
Working on a (MMO)RPG right now in LightEngine (thanks kBessa)
Kurt
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location:
Posted: 1st Mar 2008 21:21
Hehe. Although this was easily solved, it would have been nice if next time you included the error message from VC+. Good luck

Login to post a reply

Server time is: 2024-09-29 13:30:44
Your offset time is: 2024-09-29 13:30:44