Manipulate position variable
Posted: 09 Oct 2016, 20:32
I have a position variable named pos. The variable is initialized with a value of 1547:730. I want to increment the X and Y values in a loop, but I don't know how to access them. What is the correct way to do this?
For example, I'd like to do something like this:
For example, I'd like to do something like this:
Code: Select all
pos.x += 50
pos.y += 100