
Sat Sep 02, 2017 11:02 pm
I've been trying out the upcoming mouse features found in the SPAM folder and adapting my park building game to the move hero with mouse-click command, which I have to say works really well, minus the occasional one-tile overshot that may or may not be the fault of my scripting, and has a pretty robust pathfinding algorithm. It's basically what I tried and failed to script on my own a few years ago, and I couldn't be happier to have it now.
That said, using the feature has given me some case studies to consider, and if you could implement them as you work on mouse features, it would make point-and-click control all the better:
1. Pause/Resume Hero Movement
Similar to suspend/resume npcs, this would stop the hero's movement toward his mouse-click destination, and then resume the journey on the script's command. This would simplify turn-based strategy games where an action, timer, or action point exhaustion would interrupt the hero's movement until the next turn.
2. Close Menus with Mouse
Right now we can open menus, but we can't yet close them. It also looks as though custom menus aren't fully selectable with the mouse yet. I'm sure this is already planned. Note: Choice boxes don't yet work with the mouse.
3. Pathfinding Timeout for Mouse-driven Heroes
Works like the pathfinding timeout for NPCs, but given to heroes. This is probably already intuitive behavior, but when the script has custom controls (WASD and number pad movement, with arrows controlling camera, for example), the script locks up if you don't write a contingency script for safeguarding against inaccessible destinations (which I did, successfully).
4. Suspend/Resume Mouse-Click
Basically the same thing as #1, but works at a script level rather than a hero level. Could also be called REPEAT LAST MOUSE ACTION.
5. Grab Slice/Sprite/NPC/Hero with Mouse
Good for Tycoon style games where the player has the freedom to place objects with the mouse. Basically, the selected object will move with the mouse until the player drops it. This might already have a scripting workaround, but a general function for it would be better.
So, that's good for now. I think the ability to suspend and resume movement without ending the trip early is the most important feature on this list. Thanks for implementing better mouse function.
Place Obligatory Signature Here