playMaker

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

Saputo

  • Full Member
  • ***
  • Posts: 107
    • View Profile
how do you set up triggers with a mouse?
« on: April 09, 2013, 11:35:03 AM »
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: 2487
  • Yup.
    • View Profile
    • Cleverous
Re: how do you set up triggers with a mouse?
« Reply #1 on: April 09, 2013, 12: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.

Saputo

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: how do you set up triggers with a mouse?
« Reply #2 on: April 09, 2013, 01: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: 2487
  • Yup.
    • View Profile
    • Cleverous
Re: how do you set up triggers with a mouse?
« Reply #3 on: April 09, 2013, 02: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.

Saputo

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: how do you set up triggers with a mouse?
« Reply #4 on: April 09, 2013, 04: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.