Calling a function from another document

I’m sorry, just (hopefully) one last question. When I pass variables through the function, 

e.g.

M.smoke = function(x, y)

I can use x and y when calling the function, but I can’t perform arithmetic on them. Is there a way to get around that?

yes it’s possible - but you haven’t provided alot of information/code etc… to assist easily.

Advice look at and breakdown the score module by Rob - that’s how i learnt about using modules.

T.

Ok. Thanks a lot!