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.

Newcomers DBPro Corner / Getting Started Tutorial 1 pdf

Author
Message
JohnSoCal
15
Years of Service
User Offline
Joined: 16th Jan 2009
Location:
Posted: 16th Jan 2009 21:22
I have just started working with c++ and Dark yesterday, and have ran into a problem on my code on tutorial 01. I do exactly what it says in the steps and I can get as far as this line:

dbLoadImage ( "animatedsprite.png", 1 );

this function call works and the image will load and debug

but when i get to the next step in the tutorial I notice that my code doesnt turn red and it keeps failing to debug


#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;
}


dbCreateAnimatedSprite ( 1, “animatedsprite.png”, 4, 4, 1 ); doesnt turn red in the code like it does in step before, its like my function call isnt being accknowledged... anyone know why this would not work?
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 17th Jan 2009 03:11
You should post this in the DarkGDK board, this board is for DBPro.

JohnSoCal
15
Years of Service
User Offline
Joined: 16th Jan 2009
Location:
Posted: 17th Jan 2009 03:21
o ok

Login to post a reply

Server time is: 2024-11-25 12:22:21
Your offset time is: 2024-11-25 12:22:21