Skip to content
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

"Mouse mode" toggle on mobile #108

Open
3 tasks done
TannerJ07 opened this issue Sep 27, 2024 · 3 comments
Open
3 tasks done

"Mouse mode" toggle on mobile #108

TannerJ07 opened this issue Sep 27, 2024 · 3 comments
Labels
enhancement Improvement to existing capability

Comments

@TannerJ07
Copy link

TannerJ07 commented Sep 27, 2024

Check ([ ] -> [x]) all that apply, then describe the issue below:

A toggle in mouse mode that switches touch interaction from moving and action into lmb and ldg. A lot of projects don't work on mobile due to a weird mouse interaction, and the game can't even start.

  • I have searched the tracker for similar issues (including closed ones)
  • I have provided a detailed example for how this feature should work
  • I have provided a use case for this feature, e.g. short description/share link of a game you're making and how you'd use the feature in that game, other things you've tried, edge cases, etc. (if applicable)
@TannerJ07 TannerJ07 added the enhancement Improvement to existing capability label Sep 27, 2024
@david-pfx
Copy link
Owner

Sounds reasonable. Can you suggest a demo game as a repro?

@TannerJ07
Copy link
Author

Sure I'll try to get a small one going.

@TannerJ07
Copy link
Author

TannerJ07 commented Sep 29, 2024

This seems like a good time to mention how painful editing a script on mobile is. Anyway, this code will let you use the mouse, but not swipe the player, or right click. This isn't a huge issue, just a bit of an inconvenience if the creator didn't think of mobile player while making the game.

mouse_left lmb
mouse_right rmb
mouse_drag ldg
========
OBJECTS
========
​
Background .
black

Player p
green
​
lmb
orange
​
ldg
blue

=======
LEGEND
=======

=======
SOUNDS
=======

================
COLLISIONLAYERS
================
Background
Player
ldg
lmb

======
RULES
======

==============
WINCONDITIONS
==============

=======
LEVELS
=======
......
......
......
......
.....p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing capability
Projects
None yet
Development

No branches or pull requests

2 participants