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 / Sprite Positonings

Author
Message
blah569
18
Years of Service
User Offline
Joined: 10th Aug 2006
Location: Austin, TX
Posted: 4th Jul 2008 14:08
I have succesfully set the position of a sprite in DBP before, but I am having difficulties in Dark GDK right now. The sprite does exist and such, I receive no errors for that. Anyway, here is my main.cpp file:



Any assistance is appreciated. Thanks.

PHP, C++, and DarkBasic Pro addict.
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 4th Jul 2008 17:13
If DarkGDK can't find your file, it doesn't crash with an error, it just ignores that problem. Try using an absolute path, including the driver letter, and see if it's a problem of not being able to find your file. I recommend, as a test, placing your image at the root of the drive, most likely your C drive, so that you can load it like this 'dbLoadImage("C:/fret1.png",1);'.

If it works, then you'll have to work out what directory your program starts in. dbDir() should help.


My site, for various stuff that I make.

Login to post a reply

Server time is: 2024-09-30 01:22:08
Your offset time is: 2024-09-30 01:22:08