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 Discussion / Please Help

Author
Message
Chakra
19
Years of Service
User Offline
Joined: 27th Feb 2007
Location:
Posted: 28th Feb 2007 14:28
Im New To DarkBasic...

What Should i Start off by doing???
NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 28th Feb 2007 17:33
You should first read the tuturials and then play around with the basic commands. Eventually you will progress to more complicated commands. Try starting off with something basic like this:



If your not sure of anything just refer to the tuturials.

I can see you...
Chakra
19
Years of Service
User Offline
Joined: 27th Feb 2007
Location:
Posted: 28th Feb 2007 18:05
i See. Whats with the numbers 255,255,640,480
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Feb 2007 18:37
Quote: "Whats with the numbers 255,255,640,480"


Reading the tutorials (lots can be found in the stickies at the top of the Newcomers board) will answer simple questions like that.

TDK_Man

NanoGamez guy
19
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 28th Feb 2007 18:44
The 255 numbers are used in the 'rgb' command.
'rgb' generates an number that can be used with the 'ink' command which reprents a colour, based on 'red','green' and 'blue' values. so ‘rgb(rnd(255)rnd(255),rnd(255))’ generates a random colour.
The 'ink' comand is used to specify the colour of the current ink colour
and all the thing you draw in 2D will be that colour untill you change it again. so 'ink rgb(255,0,0),0’ will change the current ink colour to red.

The numbers 640,480 are used in the ‘dot’ command.
Basically it simply draws a dot on the screen using a specified x and y coordinate.
X and y coordinates are positions on the screen. x is the width starting from the left and y is the height starting from the top.
I use rnd(640) and rnd(480) because with the default display mode, the maximum width is 640 and the maximum height is 480. So rnd(640) generates a random x coordinate between 0 and 640.

Do you understand it a little bit better now?

If there’s anything your still not sure of, check out the tutorials.

I can see you...

Login to post a reply

Server time is: 2026-07-06 07:52:06
Your offset time is: 2026-07-06 07:52:06