Author Topic: Dragging an object from relative click position  (Read 802 times)


  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Dragging an object from relative click position
« on: October 17, 2014, 10:58:30 AM »
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?
« Last Edit: October 17, 2014, 11:01:27 AM by rxmarcus »