No other scripts, just this one. I installed the trial version of Ace for the first time today to take it for a test spin.
I'm running it in a Windows 7 virtual machine on my Mac. Perhaps it's something unusual caused by VMWare Fusion. Thanks for the quick response anyway!
I think I understand the problem. The mouse has one frame late than the actual cursor position outside the screen.
I'm well aware this problem, though, it's not really a big deal for me.
You know, Unity has the same problem when I tried to make my own cursor using mouse position.
How can you tell something is one frame late when it's playing at 60 per second?
That isn't quite what I was seeing. The mouse cursor appears to move at 1/2 the speed that it moves outside the window.
Is there a way to view the frame rate while the game is playing? Maybe I'm getting a slower frame rate in the virtual machine than 60 fps...
It shows 60fps. Guess that wasn't it.
Update: I pulled my old XP machine out of the closet and tried it on there. The mouse cursor speed is what I would expect. So it definitely has something to do with running in the VMWare Fusion virtual machine.
Also, another question: I installed the Aveyond 2 demo on my old XP machine to study the mouse behavior, and I noticed the opening little house is on a map that scrolls horizontally, and the mouse seems to work fine. For kicks, I turned on horizontal and vertical scrolling on my own little test map, and the mouse seems to work. The PC goes where I click, and the map scrolls fine. Am I missing something as to why the mouse script isn't supposed to work on a scrolling map?
TheoAllen, ANY game that has a custom mouse cursor will be slow. That's why I ALWAYS disable the mouse cursor when I play time management games.
What opening little house on Aveyond 2? The Vale? That map doesn't scroll horizontally. In fact I don't think there's ANY horizontal/vertical scrolling in Aveyond 2 maps. Unless you grabbed the very latest version and it's not what I have on my machine. Besides, the mouse script for Aveyond is a different script altogether. XP maps and Ace maps are quite different, including the way they handle scrolling.
The script doesn't work properly on Ace maps that have horizontal/vertical scrolling. As a test, make a map the default size, bucket fill with one tile, then draw with another tile right around the outside so it's clear where the map boundaries are. Turn on horizontal/vertical scrolling. Now play. As the map scrolls, you'll see that "border" tile. Let's call everything inside that border tile a "region", so as you continue to walk, you will cross multiple regions that all look the same. As long as you click inside the same region the player is standing in, it will work. But when you start clicking in a different region, things will start going pear-shaped.
It does not work on looping maps - where you check the Loop Horizontal and/or Loop Vertical boxes in the map properties.
Maybe I've not used the correct terminology in the OP. I'll go back and check that now, and adjust as necessary.
Yes, it would be silly to release a script that only worked on maps that were the default size 😉
Thanks for that Magno. I've added Hime's script and your patch to the first post.
If this script is still maintained, I found a problem with <autoactivate>.
If you stand on an event (set Below - Action mode) and click on another which has the <autoactivate> tag, it also activates the event where the player is standing.
Edit: It doesn't occur if the event is at Same as character, but then the keyboard doesn't activate either.
thanks. I think I know what might be causing this - hopefully it'll be an easy fix 🙂
Would be really cool if the script allowed controlling other events without panning the screen around them. For instance, have the mouse be the central focus, not the events, like in most RTS's.