playMaker

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

celaeno

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
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, 07:26:56 AM by celaeno »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Mousepick object, store it into variable and change position, how?
« Reply #1 on: May 06, 2014, 08: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.

celaeno

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