playMaker

Author Topic: Pick object, then move it  (Read 1021 times)

TomsTales

  • Playmaker Newbie
  • *
  • Posts: 11
Pick object, then move it
« on: November 12, 2020, 10:10:39 AM »
Hi Guys,

I have 3 objects (example), want to pick one with the mouse button, then move it with they keys (aka activate a script for this as I have one ready), but ONLY the activated object that I cllicked on. Then, I can click on the next object and so on.

Any idea how to do this?

Cheers

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Pick object, then move it
« Reply #1 on: November 14, 2020, 06:29:01 AM »
Hi.
you can use a Mouse Pick, then store the object.

Then Get Mouse X / Y and Screen To World Point

The result you can use to set the position of the object.