Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Insanity82 on December 18, 2017, 05:13:20 AM

Title: Get Mouse X, Get Mouse Y how to scale to screen transform?
Post by: Insanity82 on December 18, 2017, 05:13:20 AM
When using Get Mouse X and Get Mouse Y (normalized) I get screen coordinates between 0 and 1, but my transform settings don't match this.

In my transform settings the bounds of my screen are between position -9.5 and 9.5 on the X axis and and between -16.5 and 16.5 on the Y axis.

How do I convert one to the other?
Title: Re: Get Mouse X, Get Mouse Y how to scale to screen transform?
Post by: djaydino on December 18, 2017, 05:17:40 AM
Hi.
I believe that there is an action called "get mouse position" on the Ecosystem (https://hutonggames.fogbugz.com/?W1181)
Maybe that one is better to use.

I can't confirm as i am not on my computer atm.