-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TouchScreenButton's "action" property doesnt work as intended on mobile. #58562
Comments
@Dan-Gamin Please upload a minimal reproduction project to make this easier to troubleshoot. Also, make sure Emulate Mouse From Touch is enabled in the project settings. See #24589. |
@Calinou Well here the reproduction project. But it works. But in my game. it doesnt. |
Tested on iOS using |
You should specify which mobile devices you've experienced this issue on. |
I am using Android. |
You should also update MRP so that it actually reproduces your issue if it doesn't. Because right now it's not doing it, at least on iOS and from what I understand you also can't reproduce an issue with this MRP. |
I have minimized my game to only include the bug. It is reproduceable (at least for me on android). Edit: I forgot to explain how to reproduce the bug: |
This is probably related to the #58550 and should be fixed by now. Please try using new Godot alpha 4 build. |
@Dan-Gamin seems to have this issue on Android so I guess the iOS specific regression fix might not solve it? |
Okay... I will test it out soon. |
It didn't fix it... I don't think this is related to multitouch since my dash should work without using the joystick (It remembers the last joystick vector). Also, can anyone else reproduce this issue? |
My bad. Seems like I've forgotten about it. 🤔 But I wasn't able to reproduce it in alpha-4. At least with the current project. I've had to modify it so it would actually run on new alpha release, I might have done something wrong though. |
@naithar This one.zip should actually reproduce the issue (even on |
Right now I'm getting. And
|
I have never seen that before... On which platform is this on? |
iOS, that's the only mobile platform I can test |
Huh... On Android at least the |
After commenting out all IMG_7415.MP4Edit: |
Interesting... Maybe that fixed the problem? When I run my game on android, I get this warning:
Maybe this is the cause since it comes from the same source script that caused your issue? |
I guess it could be related, but I have no means to check android version. |
Godot version
v4.0-alpha2
System information
Windows 10 64-bit, GPU: NVIDIA Geforce GTX 1650 Ti, CPU: AMD Ryzen 7 4800H
Issue description
I am porting my game to mobile devices. I need to make a button that would trigger a specific action on pressed. The
action
property seems to do exactly that. And it worked on PC! (withemulate_touch_from_mouse
enabled) But on mobile, it doesn't work. It doesnt trigger the action when pressed. Nothing.Steps to reproduce
See above
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: