ProgrammerSupply Forum

A forum for the website: www.programmersupply.com

Log in

I forgot my password

Who is online?

In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None


[ View the whole list ]


Most users ever online was 9 on Tue Aug 02, 2016 12:18 am

650th post contest winner

Tue May 05, 2009 5:08 pm by Admin

Hey everybody!
I guess you are all wondering who won the contest. Well................NOBODY!!!! Yeah it's kinda confusing, but the last post(the 650th) was made by double posting, it had to be deleted. After that there was already over 650 posts, so......nobody won. There is however going to be another contest....in the future. I will let you know more about that soon. But until

ProgrammerSupply Blog Open!

Sat Dec 20, 2008 7:43 am by Admin

Hey everybody,
The new ProgrammerSupply blog is open. You can view it at this address: http://blog.programmersupply.com

Please check that out, and when you do, look at the top right corner and click register.

Thanks!

Latest topics

» Mac or pc?
Mon Feb 18, 2013 6:25 pm by Admin

» Where did everybody go?
Mon Feb 18, 2013 6:04 pm by Admin

» Dead Prosupply
Mon Feb 18, 2013 6:02 pm by Admin

» Site Comment
Mon Feb 18, 2013 5:57 pm by Admin

» Well, here we are once again.
Mon Feb 18, 2013 5:52 pm by Admin

» Topher's birthday party discussion
Fri Mar 16, 2012 11:32 am by Admin

» Game- ready model shops
Fri May 07, 2010 6:17 am by Tinlau

» I found it out!
Fri Mar 26, 2010 8:20 pm by Admin

» hello....?
Fri Mar 26, 2010 8:19 pm by Admin

Poll

Search


    Simple DarkBASIC tutorial

    Share
    avatar
    Admin
    Admin

    Number of posts : 251
    Registration date : 2008-11-17

    Simple DarkBASIC tutorial

    Post  Admin on Tue Dec 09, 2008 7:05 pm

    I thought that I would post this incase anybody was interested in learning darkbasic.

    This is a simple program. When you are finished, if you did everything correcly, you will be able to turn a cube in all directions using the arrow keys. Type the code in EXACTLY as I have it here. Here we go......

    Code:
    Sync on
    Sync Rate 30

    This code tells the computer to turn sync on. When you choose the sync rate, you are tell the computer how many times you want it to refresh every second.

    Code:
    make object cube 1,100

    This code makes the cube that you will be spinning. The first number(1), is the ID of the cube. You will need that to refer to it later. The second number is the size of the cube. 100 is a good size for this program, but you can change it if you want.

    Code:
    Do

    You always type Do once you are ready to start giving the computer the interactive commands. Meaning, the commands that will be used for the arrow keys and things like that.

    Code:
    if upkey()=1 then pitch object down 1,3
    if downkey()=1 then pitch object up 1,3
    If leftkey()=1 then Turn Object right 1,3
    If Rightkey()=1 then Turn Object left 1,3

    These are they up and down, left and right arrow key commands. All I really need to explain are the numbers at the end. The firsy number is the one of the object that you want moved. Remember the ID we gave the cube? Well this is where it would be used. The second number is the number of worlds it goes when you press the key. Pretty much, the higher the number, the faster it is.

    Code:
    Sync

    This has to be at the end of an interactive program.

    Code:
    loop

    This is telling the program to loop the program whenever something happens. Otherwise, you would only be able to press the arrow key once and that would be the end of the program.

    Code:
    wait key

    If this code isn't here, the program will come up and go away so fast that you won't be able to do it. This command is telling the program to wait until the right key is pressed it stop.




    Well, I hope this was helpful. If there are any problems, please let me know.


    _________________
    Later,
    Admin




    http://www.newgrounds.com/refer/djkanis

    jimy

    Number of posts : 1
    Registration date : 2009-03-09

    Re: Simple DarkBASIC tutorial

    Post  jimy on Mon Mar 09, 2009 10:26 am

    Hey!, nice tutorial Very Happy

    i just started yesterday, i found that there's not enough tutorial for beginners out there Neutral

    i hope there's more from you ^_^
    avatar
    Admin
    Admin

    Number of posts : 251
    Registration date : 2008-11-17

    Re: Simple DarkBASIC tutorial

    Post  Admin on Mon Mar 09, 2009 12:15 pm

    Thanks!


    _________________
    Later,
    Admin




    http://www.newgrounds.com/refer/djkanis
    avatar
    guitar....

    Number of posts : 211
    Age : 1977
    Location : Pluto
    Registration date : 2009-04-04

    Re: Simple DarkBASIC tutorial

    Post  guitar.... on Sun Apr 05, 2009 2:24 pm

    Where do I typ this in?
    avatar
    Admin
    Admin

    Number of posts : 251
    Registration date : 2008-11-17

    Re: Simple DarkBASIC tutorial

    Post  Admin on Sun Apr 05, 2009 4:27 pm

    You have to have the DarkBASIC software.


    _________________
    Later,
    Admin




    http://www.newgrounds.com/refer/djkanis
    avatar
    guitar....

    Number of posts : 211
    Age : 1977
    Location : Pluto
    Registration date : 2009-04-04

    Re: Simple DarkBASIC tutorial

    Post  guitar.... on Sun Apr 05, 2009 7:15 pm

    o okay thanks!! sorry about earlyer
    avatar
    Peacewordwhat

    Number of posts : 2
    Location : georgia
    Registration date : 2009-11-19

    Re: Simple DarkBASIC tutorial

    Post  Peacewordwhat on Thu Nov 19, 2009 12:07 pm

    kwl

    Sponsored content

    Re: Simple DarkBASIC tutorial

    Post  Sponsored content


      Current date/time is Sun Aug 19, 2018 2:26 am