Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: celaeno on May 06, 2014, 10:19:31 AM

Title: Mousepick object, store it into variable and change position, how?
Post by: celaeno on May 06, 2014, 10:19:31 AM
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
Title: Re: Mousepick object, store it into variable and change position, how?
Post by: Lane 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.
Title: Re: Mousepick object, store it into variable and change position, how?
Post by: celaeno on May 06, 2014, 02:24:05 PM
Thanks for your answer. Is there a tutorial on click an drag at runtime?