0 votes

So, I have set up a mobile game where you have two buttons that you press that do different stuff. Now, I've noticed that when I play the game on my iPhone it seems to sometimes trigger when I release the button rather then pressing it. And the image is not showing it's pressed even though it triggers the correct event to happen.

It seems to happen when I'm not fully pressing it, meaning when I click it with half my finger inside, other half outside.

I have gone through every control node I have in the scene and set it to ignore. Worth noting is that use viewport as scale mode and keep width as aspect.

http://i65.tinypic.com/madrw0.png

Yes, the button is inside a control node, that is because I was first using a TouchScreenButton, but it was the same deal there.

Edit: It seems to be only affecting the corners of the touch screen. Any ideas what's going on?

Edit 2: It seems like viewport scales the buttons click area to be half the size?

in Engine by (30 points)
edited by

1 Answer

0 votes

I don't know if this is (was) related:
I found your request because my TouchScreenButtons behaved weird exclusively on my iPhone app:
I had to press the button always a little above the actual button texture (which only occurred when I pressed "jump" and "left" or "right" at the same time) and I finally solved my problem by turning off the "Shape Centered" option.

by (18 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.