david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
16 stars 6 forks source link

"Mouse mode" toggle on mobile #108

Open TannerJ07 opened 2 months ago

TannerJ07 commented 2 months ago

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.

david-pfx commented 2 months ago

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

TannerJ07 commented 2 months ago

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

TannerJ07 commented 2 months ago

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