Ok a function is really quite simple. It stores code that can be accesed from anywhere in the program yo are writing.
example below.
example below.
while not keyhit ( 1 ) cls myfunction() <<<<This makes a call to myfunction() flip wend end Function myfunction() <<<This is the function being called..:) print "Hello, Im inside a function called myfunction()" end function