Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: qaaz345 on December 31, 2018, 12:31:58 PM
-
Do this to increase the distance of the X-axis at a certain time interval.
Get position
x = n
add float
n = (n + 1)
Set position
x = n
Isn't there an easier way?
-
If nothing else is affecting x, you don’t need n. Just x + 1, and set position.
-
Hi.
With 'Translate' you can add per second also with 'float add'
-
Hi,
It's difficult to make this easier than as you describe it, it's totally fine. It's tricky sometimes to assess if a pattern can be optimized or not, and at some point the work has to be done somehow, so getting the position, modify it and setting it back is as close as you can get to a minimal pattern.
then, as other replies suggested, you can use translate for a constant movement, it depends on your time interval and how you want the movement of the object to be.
Bye,
Jean