playMaker

Author Topic: Using objects as buttons  (Read 69 times)

Ingsoc75

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Using objects as buttons
« on: November 16, 2017, 02:00:54 PM »
I've gone through tutorials where I can use a uGUI button to make other objects do things but I can't seem to figure out this:

How can I have an object (like a mesh) be a button to control another object?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2291
    • View Profile
    • jinxtergames
Re: Using objects as buttons
« Reply #1 on: November 16, 2017, 03:23:48 PM »
Hi,
Can you give a link to the tutorial?

You can find many tutorials here to get to know playmaker :

https://hutonggames.fogbugz.com/default.asp?W548

http://www.hutonggames.com/tutorials_game_design_with_playmaker.php

Ingsoc75

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Using objects as buttons
« Reply #2 on: November 16, 2017, 03:30:33 PM »
This one uses a uGUI button to open a door:

https://www.youtube.com/watch?v=aqI7RxBImZM&t=299s

Ingsoc75

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Using objects as buttons
« Reply #3 on: November 17, 2017, 06:11:40 AM »
Anybody have an idea on how to do this?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2291
    • View Profile
    • jinxtergames
Re: Using objects as buttons
« Reply #4 on: November 17, 2017, 09:49:34 AM »
Hi,
You can get the "ugui proxy full" from the Ecosystem

or to send an event you can do this :

on the "button component" @ the 'On Click ()' click on +
Then below "Runtime Only" drop in the game object with the fsm that you want to send an event to.

Then Click on "No Function" and select 'PlayMaker FSM/Send Event.
The Below that, place the event name that you want to send.