playMaker

Author Topic: animation on cursor position when click[SOLVED]  (Read 1439 times)

gabe05

  • Playmaker Newbie
  • *
  • Posts: 2
animation on cursor position when click[SOLVED]
« on: July 25, 2018, 07:52:30 PM »
Hi, im just starting with playmaker and Unity, and im trying to do a simple effect on a 2D game screen when the player clic on any place on screen, but for some reason getting the mouse position does not match with the space coordinates to create an object in that position.

Basically I can't create an object in the exact position where the player clicked, i attached a gif with a example of what im trying to do.

Any help would be appreciated, thanks!

(Sorry my bad english)
« Last Edit: July 26, 2018, 11:43:39 PM by gabe05 »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: animation on cursor position when click
« Reply #1 on: July 26, 2018, 05:04:49 AM »
Hi.
I believe you need to use "Screen To World Point"

gabe05

  • Playmaker Newbie
  • *
  • Posts: 2
Re: animation on cursor position when click
« Reply #2 on: July 26, 2018, 10:11:38 PM »
Hi.
I believe you need to use "Screen To World Point"

Omg it works, that was all! thanks for that you are amazing, saved me a lot of hours!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: animation on cursor position when click[SOLVED]
« Reply #3 on: July 27, 2018, 10:06:55 AM »
Hi.
Happy to help :)