Playing with match media I can't seem to change a global variable. I read that you need to make a function with variable inside the function then call the function globally. If I do that from the match media I get "function undefined".
Yes, I know I can just create different tweens and just add it to match media function. But I would like to know how to pass variables around. This is just a simplified example.
Another simple one I know, but I read like 7 sites with no avail. Must be wording it wrong.
Thanks