playMaker

Author Topic: how do you set up triggers with a mouse?  (Read 2464 times)

Saputo

  • Full Member
  • ***
  • Posts: 107
how do you set up triggers with a mouse?
« on: April 09, 2013, 02:35:03 PM »
I was watching this Tut, Now how could I do this if the player brings there mouse to that area?

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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: how do you set up triggers with a mouse?
« Reply #1 on: April 09, 2013, 03:31:22 PM »
Not sure which video you're pointing to, you just link to the page in general.

Mouse Pick action on every frame will fill whatever variables you choose constantly. You can read those variables or use them in other FSM's if you make them globals.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Saputo

  • Full Member
  • ***
  • Posts: 107
Re: how do you set up triggers with a mouse?
« Reply #2 on: April 09, 2013, 04:53:13 PM »
opps my bad, it's this one the Triggers video

http://www.youtube.com/watch?feature=player_embedded&v=BYwkd80T5Zk

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: how do you set up triggers with a mouse?
« Reply #3 on: April 09, 2013, 05:52:11 PM »
I'm not sure if it will work with the mesh renderer off but you can try Mouse Pick with a layer mask to catch the trigger only.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Saputo

  • Full Member
  • ***
  • Posts: 107
Re: how do you set up triggers with a mouse?
« Reply #4 on: April 09, 2013, 07:01:51 PM »
Well what I'm aiming to do is, if you move the mouse over a spot on the image text will pop up and say what it is and what it does.