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.

Author
Message
SkunkMan
23
Years of Service
User Offline
Joined: 11th Jun 2003
Location:
Posted: 19th Jun 2003 06:24
Hi!

I'm learning simple programming so I can make a simple game at first. I was go over a tutorials and I don't really understand Functions. Is their a good tutorial to help me with my problem. I tried the one at http://www.darkbasic.com/create/bm_tutorials/ but that doesn't help.

Thanks
Skunky
Mussi
23
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 22nd Jun 2003 17:13 Edited at: 22nd Jun 2003 17:14
functions are used to eighter make your own commands or to make 1 command of a list of commands.

example of making your own command:



now you can use your self made command by typing:



this will print "your text here" 10 to the right and 15 pixels down on the screen.

example of making 1 command of a list of commands:



you could yust use the print command every time but when your programming a game you will have to use things multiple times so it's handy if you make a single command for a list of commands which your gonna use multiple times.

i hope this helps.

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Riva TNT2 Ultra 32mb

Login to post a reply

Server time is: 2026-07-06 12:11:01
Your offset time is: 2026-07-06 12:11:01