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.

DarkBASIC Professional Discussion / can anyone help me please dbpro tutorial 1 screen scrolling

Author
Message
chester
23
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 11th May 2003 13:05
i can`t get the first dbpro tutorial to work,its the first tutorial called screen scrolling.there`s a link to it from the darkbasic pro home page I type the code in, then in the editer add the media file with the check boxed checked so as to copy to the same folder, then when you hit f5 it comes back with could not load bitmap at line nine, i know i`m doing something wrong but i dont no what can someone point me in the right direction
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 11th May 2003 13:21
make sure you typed the file EXACTLY the same, and physicaly copy the file to the project folder yourself to make sure it is there, little things like typing Grass01 or grass01 or grasso1 or grass1 when it should be grass0l (see the difference??) will stop the file from being found, if you get that message then either the file is not there or the name/path is wrong, hope that helps you some.

Mentor.

chester
23
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 11th May 2003 13:34
tried that, i copied the media file to the folder, i`ve checked the spelling all correct, but this time when you hit f5 it says can not grab image due to an illegal area at line 22

Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 11th May 2003 14:12 Edited at: 11th May 2003 14:17
change line 18 to

get image 1,1,1,800,600,0

and it works, strange there should be an error like this in a tutorial, actualy this is just one of DBs "Quirks", the image area SHOULD be 0,0 to 799,599 but for some reason it works like this (I just wonder where the extra pixel is supposed to come from) weird!, oh!, have you added some lines to your code? line 22 is a sprite instruction in my copy (just downloaded)

Mentor.

chester
23
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 11th May 2003 14:51
tried that still did not work same error, yes it is line 18 not 22 it was ware i copy paste the code in to the editor, if i run the file from ware i downloaded it it works, but if i go about it and type the code in as if i was writing the code for a program that i made, and add the media file using the editor it does`nt.
am i right in asumming that after you have written the code and added all of the media files you just hit f5 and it should work.

I`ve got the beginner`s guide to darkbasic game programming book which comes with a cd, on the cd there is the samples and some of these don`nt work either same errors you know the can`t find image
which makes me think i losing the plot someware

Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 11th May 2003 14:58
The media is where is it supposed to be right? Have you tried putting it in the same directory as the executable?

I hear and I forget. I see and I remember. I do and I understand.
chester
23
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 11th May 2003 15:05
yes the media is in the same directory as the executable

Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 11th May 2003 15:42
I thought it should be in the folder media?

I hear and I forget. I see and I remember. I do and I understand.

Login to post a reply

Server time is: 2026-07-12 16:42:49
Your offset time is: 2026-07-12 16:42:49