Hmmm...
Can't seem to figure out how to use functions.
Could someone please explain it for me?
Can't seem to figure out how to use functions.
Could someone please explain it for me?
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
intro() game() outro()
print addition(10,10) end function addition(a,b) return a+b end function
Function addition(a=0,b=0,c=0,d=0) return a+b+c+d end function
Function mergestring$(a$,b$) return a$+b$ End Function Function Addfloat#(a#,b#) return a#+b# End function
Function dostuff(a,b,c,d) Local stuff[3] stuff[0] = a stuff[1] = b stuff[2] = c stuff[3] = d ;and ect... End function
setbuffer frontbuffer() while not keydown(1) if mousedown(1) drawmouse(mousex(), mousey()) ; << the function call endif wend end function drawmouse(x,y) plot x,y end function