Error obtaining Source Code in the source button
post the source into your post but wrap it with
[ c o d e ] your code [ / c o d e ]
remove the spaces in the code tags for usage.
without seeing your code
if your function is updating something it Might require a sync command.
however too many sync commands might degrade performance in the main loop
depending on how your games program flow is constructed.
eg:
function showscore(Score)
text 10,10,STR$(Score)
sync
endfunction
you can write a condition to check if the score has changed and then run the function.
this might improve the functions usage in your programs loop instead of being run every loop,its only called when required.
you could write a condition using an if statement to say if the current score is higher then the older score then run the function
eg:
main loop psuedo code
Score = OldScore
rem update showscore condition
if OldScore < Score
showscore(Score)
endif
im a bit rusty today so theres bound to be a mini bug in it somehwhere, but the theory should be ok.
If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself 