Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rxmarcus on October 17, 2014, 01:58:30 PM

Title: Dragging an object from relative click position
Post by: rxmarcus on October 17, 2014, 01:58:30 PM
Hey guys,
I'm creating a type of dragable UI object. (Only on X axis)
I'm somewhat new to playmaker (long time coder, just learning how playmaker works). I see Actions for Mouse Button Down and Mouse Button Up but nothing for Mouse Move.  I need a way to know when the mouse is being moved so I can change position on the object that is being dragged.

Any ideas how to best accomplish this?

Along with that I want the dragged object to move in relation to where the mouse touched it rather than it snapping its center on the mouse point. I was storing the objects X and mouse X and adding them together to get the position the draggable object should be positioned at, does that seem right?