branch if you want to test:
https://github.com/zarawesome/PuzzleScript/tree/mouse_action
instructions:
prelude command mouse_action enables mouse actions
clicking on a tile will turn on the flag ACTION on every object in that tile (player or not) and then run a turn of the game
so, for example, adding this rule to stephen's basic crate game will create crates wherever you click
[ action Background ] -> [ Background Crate ]
if the game is in realtime and throttle_movement is enabled, clicking will not create extra turns, it will wait for the next realtime turn
an example that is overly complicated because it's adapted from the keyboard version:
https://zaratustra.itch.io/candy-crunch-legend
- Fixed the undo issue Hand-E-Food found
- title screen has different text if mouse_action is added
- tentative mobile support that I haven't tested
- Added a "undo" action similar to "cancel" and "restart" - that way you can have a clickable undo button in the game if you so wish