Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gabe05 on July 25, 2018, 07:52:30 PM

Title: animation on cursor position when click[SOLVED]
Post by: gabe05 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)
Title: Re: animation on cursor position when click
Post by: djaydino on July 26, 2018, 05:04:49 AM
Hi.
I believe you need to use "Screen To World Point"
Title: Re: animation on cursor position when click
Post by: gabe05 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!
Title: Re: animation on cursor position when click[SOLVED]
Post by: djaydino on July 27, 2018, 10:06:55 AM
Hi.
Happy to help :)