Manipulate position variable

Post here if you need help using Actiona
Post Reply
Postcount
Posts: 2
Joined: 09 Oct 2016, 20:25

Manipulate position variable

Post by Postcount »

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:

Code: Select all

pos.x += 50
pos.y += 100
Postcount
Posts: 2
Joined: 09 Oct 2016, 20:25

Re: Manipulate position variable

Post by Postcount »

After some experimentation, I realize it works exactly as I imagined. In order to access the x and y values of a position variable, simply use <variable>.x and <variable>.y, respectively.

Code: Select all

Point position

position.x = 100
position.y = 250
Post Reply