playMaker

Author Topic: Clickable object[SOLVED]  (Read 1376 times)

ingumak

  • Playmaker Newbie
  • *
  • Posts: 20
Clickable object[SOLVED]
« on: August 15, 2017, 06:17:11 AM »
Hi! I´m here again with a very simple question I think.
I want to do a clickable game object. And then, send an event.
I have watched some tutorials and I think that I have to use "mouse pick event" for this.
I understand that is as simple as put the action and select in "mouse down" what event I want to send. In Ray distance I put 100 because the object is near from de camera. And in game object "Use owner" (because is the same object that I´m clicking. And finally in the end I active "everyframe".
Have I to do another step or action to send the event?
I am asking this because I wnat to be sure that this action works by this way and check where is my error. Maybe the problem is in other place.
Thanks!
« Last Edit: August 16, 2017, 02:33:42 AM by jeanfabre »

ingumak

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Clickable object
« Reply #1 on: August 15, 2017, 08:21:38 AM »
Ok, I think I have solved it. It´s working fine. But I don´t know if this is de best way. Finally I have used global events (mouse down) to do this into de same object. But I´m not sure this method will be consecuences in the future.
Someone can said me if is a good way? Thanks!!


tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Clickable object
« Reply #2 on: August 15, 2017, 08:35:10 PM »
Hi, I have a tutorial that covers this. You can find it here on youtube:
Shows the basic way to have a clickable object (and some navmesh stuff in the second half, but you can ignore that part if you want).

ingumak

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Clickable object[SOLVED]
« Reply #3 on: August 26, 2017, 01:05:52 AM »
Thanks!! Yes I had solved with your tutorial :D.