playMaker

Author Topic: Mouse Down not working - Basic, Basic Question [Solved]  (Read 2340 times)

createasaurus

  • Full Member
  • ***
  • Posts: 146
Mouse Down not working - Basic, Basic Question [Solved]
« on: December 16, 2013, 07:15:53 AM »
Hi, there is something I cannot get to work on tutorial 1 Playmaker Basics - A Simple FSM.  Embarrassing, eh?

I make a cube, and set the material color to red in the start state.  I set the material color to green in the next state.  I make a Mouse down transition, and I link them with the arrow.  When I run the program, the cube turns red, but, Mouse down (on the cube) does not move me to the next state.

I've gone through a number of other Playmaker tuts, and I really do have my way around the basics.  I think there must be something I need to do to help enable the cube to receive a Mouse Down, Mouse Enter, etc .

Thoughts?  Thank you.
« Last Edit: December 16, 2013, 10:15:43 AM by createasaurus »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Mouse Down not working - Basic, Basic Question
« Reply #1 on: December 16, 2013, 07:35:29 AM »
Hi,

no worries.

I guess, you may have forgot to add a collider to your gameobject.

 check out this working sample using MOUSE UP and MOUSE DOWN events:

http://hutonggames.com/playmakerforum/index.php?topic=5541.msg27186#msg27186

bye,

 Jean

createasaurus

  • Full Member
  • ***
  • Posts: 146
Re: Mouse Down not working - Basic, Basic Question
« Reply #2 on: December 16, 2013, 09:10:35 AM »
I studied your example.  Now I see how to set this up.  Thank you! ;D