playMaker

Author Topic: Mousepick object, store it into variable and change position, how?  (Read 1700 times)

celaeno

  • Playmaker Newbie
  • *
  • Posts: 7
Hello, I'm new to playmaker,

I'm using mousepick to pick an object and store it into a variable, how can I change the position of the picked object? Is this possible?

SetPosition only has userowner or specify gameobject as options. I would like to drag a given object on the screen without using onmousedown because from what I experienced and read about it input.getmousebutton or input.touches is faster than onmousedown.

Thanks
« Last Edit: May 06, 2014, 10:26:56 AM by celaeno »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Mousepick object, store it into variable and change position, how?
« Reply #1 on: May 06, 2014, 11:11:08 AM »
In the editor you could drag n drop with Specify Game Object (which is also the way to choose that variable you stored from the pick) but if you want something where you can click and drag at runtime it would require a different process altogether since the editor isn't shown.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

celaeno

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Mousepick object, store it into variable and change position, how?
« Reply #2 on: May 06, 2014, 02:24:05 PM »
Thanks for your answer. Is there a tutorial on click an drag at runtime?