How would you change this code to a function?
I have to say that I already know how but, big but, when you convert an in line code to a function sometimes the program stops, executes the function and then continues.
I was wondering if there is a clever way of doing that. Idealy you should be able to write a function that handles itself and is defined as:
function do_explosion(x, y, z, max)
endfunction
where x, y, z the position of the explosion and max the maximum scale of the fireball.
Still I am afraid that once you implement something as a function you loose a bit of the multythreadabily (sic) of your game and that is bad...
Any Advice, issues? knowledge???
-------------------------------
Pointy birds, Oh pointy pointy
Anoint my head, Anointy 'nointy