playMaker

Author Topic: Rect Contains or detect where a mouse click can happen  (Read 1241 times)

DragonPrinces

  • Playmaker Newbie
  • *
  • Posts: 1
Rect Contains or detect where a mouse click can happen
« on: March 26, 2015, 05:25:27 AM »
Hey Guys

We are having a small problem with our game and we cant seem to figure out how to solve it.

Its a bubble shooter game.
we have a play field with the bubbles on.
and a GUI on the sides.

The problem is whenever we click anywhere on the game screen(GUI included) a bubble fires. This makes sense because we have the bullet linked to the mouse up action.
NOW what we want to do is to have the mouse clicks (up or down) only affect the bullet when the player clicks inside the play field. if the player clicks elsewhere we don't want this to affect the firing.

We have been looking at the Rect actions BUT we cant seems to figure them out. i suspect the Rect actions are the way to go.

Do any of you guys have any ideas on how to solve this OR maybe have a link to somewhere that explains the Rect actions in more detail?

Thanks Guys