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.

2D All the way! / 2d tutorial

Author
Message
Now what
14
Years of Service
User Offline
Joined: 11th Sep 2009
Location:
Posted: 26th Oct 2009 07:23
I've been following along with the tutorial, but I ran into a problem. This is my code:

#include "DarkGDK.h"

void DarkGDK(void)
{

dbSyncOn();
dbSyncRate(60);

dbLoadImage("downard.jpg", 1);
dbLoadImage("mario_mushroom.jpg", 2);
dbSprite(1,0,0,1);

while(LoopGDK());
{
dbSync();
}
return;
}

Problem is it doesnt show any image. I think it should show the first image loaded. Shouldnt it?
Kevin Picone
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 26th Oct 2009 17:17 Edited at: 23rd Aug 2010 00:22
Are the images in the same folder as the test program ?

Now what
14
Years of Service
User Offline
Joined: 11th Sep 2009
Location:
Posted: 26th Oct 2009 18:43
Yes they are.
nackidno
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Där solen aldrig skiner
Posted: 27th Oct 2009 18:58
Have you added the media to the solution explorer?

mike5424
15
Years of Service
User Offline
Joined: 30th Mar 2009
Location:
Posted: 28th Oct 2009 10:51
shouldn't this be in the gdk forum?

---
Mike5424
darbiter
14
Years of Service
User Offline
Joined: 27th Oct 2009
Location:
Posted: 15th Nov 2009 04:35
try converting your image. As I had the same problem I can tell you it sometimes happens. I usualy converts files with irfanview when I get this matter.
logicandchaos
14
Years of Service
User Offline
Joined: 22nd Sep 2009
Location:
Posted: 17th Nov 2009 02:03
there is a semi colin after your while statement that shouldn't be there unless you just made a typo on your post, or you could try using bmp or png images

logicandchaos
helpfull programmer
14
Years of Service
User Offline
Joined: 30th Jul 2009
Location:
Posted: 21st Jan 2010 19:36
Hello, I am guessing you are new to Dark GDK? I am currently creating a 2D tutorial series at www.youtube.com/helpfullprogrammer , Check it out to get the basics. I am making new tutorials all the time and will put up projects to make 3D games soon.

happyprogramming
from helpfullprogrammer

Login to post a reply

Server time is: 2024-04-25 10:04:08
Your offset time is: 2024-04-25 10:04:08