playMaker

Poll

how to use touch input for one object only?

IDK
Pls answer

Author Topic: 2D platformer for android  (Read 3997 times)

IceTeaDestroyer

  • Playmaker Newbie
  • *
  • Posts: 1
2D platformer for android
« on: May 26, 2014, 03:42:21 PM »
I have recently started using unity with playmaker. The problem is when I want to setup my controls (easy touch the left side to move left and the opposite) I made a huge box to the left side and another for the other side to get touch events. When I press the left side it works good (the character moves left) but when i touch the right side the character also moves left. I didn't make the controls for the right side yet. Sorry for being noob...
« Last Edit: May 26, 2014, 03:46:09 PM by IceTeaDestroyer »

ghost010

  • Junior Playmaker
  • **
  • Posts: 51
Re: 2D platformer for android
« Reply #1 on: June 17, 2014, 06:48:51 PM »
Does the right button send the same event as left?
If so,there is your problem.

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: 2D platformer for android
« Reply #2 on: October 23, 2014, 06:49:13 AM »
Hi!
Did you get it working?

If not. Do you use "Touch Event" or "Touch Object Event"?
The first one use the whole screen as the "Touch Event", so you
need to use the last one, "Touch Object Event" if you have an object as a button.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no