Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: secondsight on February 01, 2018, 03:24:15 PM

Title: 2D mousepick works... but not where it´s supposed to. Please help !! [SOLVED]
Post by: secondsight on February 01, 2018, 03:24:15 PM
I want to do a mouse down / mouse up 2D event on one image. Searched this forum, found the solution. BUT: the event is not happening in my GUI, but in the scene ! As you can see (hopefully) in the image, when I click in my game view on that place where the image is in the scene view... it works !

(https://i.imgur.com/8ZBK2zo.png)

But obviously I want to click the button below ! What do I miss ? Please help me, Im going nuts :)
Title: Re: 2D mousepick works... but not where it´s supposed to. Please help !!
Post by: djaydino on February 03, 2018, 01:36:40 PM
Hi.
You should use buttons inside the canvas here is a sample on how to setup the button event :

(https://i.imgur.com/ER4TnXD.gif)

You can set your image for the button
Title: Re: 2D mousepick works... but not where it´s supposed to. Please help !!
Post by: secondsight on February 05, 2018, 02:54:22 PM
Thanks very much for taking the time to make the gif !
Indeed that solved my problem, finally. I´m still new to playmaker and try to understand it´s logics. But I get a hang of it :)
Title: Re: 2D mousepick works... but not where it´s supposed to. Please help !!
Post by: djaydino on February 05, 2018, 05:09:03 PM
Hi,
No Problem.

Btw you can find many tutorials on the User Tutorial Wiki page (https://hutonggames.fogbugz.com/default.asp?W548)