playMaker

Author Topic: Dividing the Screen into Two "Buttons"  (Read 1339 times)

Shirts

  • Playmaker Newbie
  • *
  • Posts: 2
Dividing the Screen into Two "Buttons"
« on: March 22, 2014, 03:36:55 AM »
I'm trying to divide the screen into two invisible multitouch "buttons". I want Side A to perform ActionA and Side B to perform ActionB.

And also they need to be pressed simultaneously if need be so ActionA and ActionB can trigger at the same time.

If anyone can point me in the right direction, I will send you a candy bar. =)




Breadman

  • Full Member
  • ***
  • Posts: 185
  • Derp
Re: Dividing the Screen into Two "Buttons"
« Reply #1 on: March 22, 2014, 04:51:42 AM »
Here's how I would go about it:

In a new FSM, use the "gui button" action. Edit the size so the button properly covers the left half of the screen. Disable the "background color" or "background image" (set it to none). This will make the button transparent. Set the button "event" to something that makes sense to you.

On that event, send the FSM to a new state (or states) which perform the action you need, eventually returning to the idle state.

Repeat for the other side of the screen, a new FSM with the same function. Having two separate FSMs will enable both buttons to do their work at the same time if needed.

Hope that helps!  ;D