playMaker

Author Topic: 2D mousepick works... but not where it´s supposed to. Please help !! [SOLVED]  (Read 1655 times)

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
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 !



But obviously I want to click the button below ! What do I miss ? Please help me, Im going nuts :)
« Last Edit: February 05, 2018, 05:09:18 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: 2D mousepick works... but not where it´s supposed to. Please help !!
« Reply #1 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 :



You can set your image for the button

secondsight

  • Playmaker Newbie
  • *
  • Posts: 24
Re: 2D mousepick works... but not where it´s supposed to. Please help !!
« Reply #2 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 :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: 2D mousepick works... but not where it´s supposed to. Please help !!
« Reply #3 on: February 05, 2018, 05:09:03 PM »
Hi,
No Problem.

Btw you can find many tutorials on the User Tutorial Wiki page