So I'm struggling a bit with how to make versatile functions by passing them different information types.
For example, consider the following function:
step 1: add y to global parameter x
step 2: update text element z to display the value of x
I know how to pass the y value by using a local numerical variable, but how do I pass which global parameter (x) to change? and how do I then pass which text element (z) to update?
(Clarification: I want to be able to change x and z every time I call the function from within the game)