playMaker

Author Topic: How do I do the += Equivalent when using setPosition?[SOLVED]  (Read 1938 times)

grimmy

  • Junior Playmaker
  • **
  • Posts: 70
Normally in Unity I would do gameObject.transform.position.x+=1; but how do I do this when positioning an object in playmaker?
Thanks
« Last Edit: March 20, 2013, 02:48:46 AM by jeanfabre »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How do I do the += Equivalent when using setPosition?
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Jryvn

  • Playmaker Newbie
  • *
  • Posts: 1
Re: How do I do the += Equivalent when using setPosition?
« Reply #2 on: March 19, 2013, 10:39:16 PM »
Try using the Translate action in the Transform group

grimmy

  • Junior Playmaker
  • **
  • Posts: 70
Re: How do I do the += Equivalent when using setPosition?
« Reply #3 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.