Hellu ye all.
Well, I'm experimenting with functions and Since I just just gosub's before, I'm not so familiar with the whole idea with functions, although I guess that functions and gosub's does have one or two things in common.
I tried to use this quite simple code in my program:
Do
Funktion(Funktion#)
Sync
Loop
Function funktion(funktion#)
Inc funktion#,10
Center text 512,384,str$(funktion#)
Endfunction funktion#
I want the value namned 'funktion#' to be increased by 10 everytime the screen is updated, but it's only increased once, constantly showing the value of 10 one the screen.
So, my guess was, and is, that I made something wrong within the function command. Anybody knows what this might be? Could you please try to explain with simple words how a function really works, please?
Thanks!
www.godhatessweden.com
Good laughter!