@Quxios: Thanks! I've tested with QMovement 1.6.1 and the aggressive memory leak now is gone.
I do still have some constant increasing memory leak, but is much slower. I'll have to debug further.
You were right with my "bug", silly me was using comments. I'll have to find a wall to bash my head.
😀
Two questions for two different case scenarios.
1. QPicture related. I would like to show 4 images over the map (left, right, top, down), so mouse over will scroll the map (move camera) in that direction. This looks a little bit silly, probably a better solution would be to use some kind of HUD plugin instead, but just asking.
I tried the implementation with QPicture, added the images, for each image added a common event to scroll map in that direction and the line to bind the qPicture to the game Picture.
qPicture 95 onMouseOver ce1
Works nice. But the image is "stealing" mouse clicks. I can't click on the map, it looks like the image is doing some kind of stopEventPropagation.
Can this case be addressed in QPicture? I want a Picture enhanced by QPicture to react to onMouseOver but ignore onClick event for example, like do the onMouseOver event but when clicking on it to actually pass the mouse clicks to the map beneath.
2. QPathfind ??? related. I want some events to do some autonomous movement. Like some people walking in a market or in a park. I want those movements to be straight, long distances, based on how realistic characters in a RPG game like Diablo actually should look like, not like in the usual RPG Maker 48x48 sprites.
The usual Autonomous Movement in RPG Maker (Random) is not helping much, it looks lame...
I've got a solution, it involves in 2 events.
One of the events (e3) is having 3 pages, first one on autorun which sets a timer (GALV_EventSpawnTimers.js), then with some javascript it jumps on several distant points on the map (event location change). This event is hidden, no icon, is not appearing on the map. It the last page has a plugin command like qPathfind e2 chase e3.
Second event (e2) is my actual NPC that I want to walk around.
So in short, e3 is a hidden event that jumps on the map from some point to some point then broadcast a qPathfind command to e2 to chase it to the new location.
Something similar was implemented by David Brown here (not sure exactly how he is doing it):
▶ YouTube video
At last...
🙂
Is that the right way to implement such an AI behavior? Or I'm just overcomplicating myself with GALV_EventSpawnTimers.js and using two events? Would be possible to achieve something similar (NPC moving around) using a single event/self containted?