Hello,
I’m making a SideScroller, and I’ve been trying to set buttons in a way that, whenever I have my finger touching them, the character moves. That includes switching between movement keys whithout having to stop touching the screen. I’m on the 4.6.1.
When setting Buttons, I couldn’t make it work, and then I tried it out with Borders, as they come up with easily binded events of OnMouseButtonDown/Up, OnMouseMove.
So, having a binding in the OnMouseMove resulted in a quick, easy way to do what I wanted, and it works great when playing the Mobile Preview and having the cursor enter, stay and leave the Borders, even when I’m not moving it at all.
- However, when I launched it up in my mobile device (Sony Xperia Z1), I’m having a lot of troubles. My finger is sometimes halfway into the Border, moving it all the way up and down, but the character doesn’t react at all.
Is this a wrong way to catch the player Input? Am I missing something about the Borders properties, thus having troubles detecting touch input?