Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: grimmy on March 19, 2013, 07:46:26 PM

Title: How do I do the += Equivalent when using setPosition?[SOLVED]
Post by: grimmy on March 19, 2013, 07:46:26 PM
Normally in Unity I would do gameObject.transform.position.x+=1; but how do I do this when positioning an object in playmaker?
Thanks
Title: Re: How do I do the += Equivalent when using setPosition?
Post by: Lane on March 19, 2013, 08:53:57 PM
Not sure about the code, does it offset the position? (not a coder)

You can change the X field from a variable option to a input field and enter 1.
Title: Re: How do I do the += Equivalent when using setPosition?
Post by: Jryvn on March 19, 2013, 10:39:16 PM
Try using the Translate action in the Transform group
Title: Re: How do I do the += Equivalent when using setPosition?
Post by: grimmy on March 20, 2013, 02:24:57 AM
Ah okay thanks. I was doing that but I had the per second option ticked which translates the object over a 1 second period, so the movement was barely visible.