Patch for analog move plugin for parallax map

doranikofu

Veteran
Veteran
Joined
Oct 4, 2015
Messages
113
Reaction score
31
First Language
Chinese
Primarily Uses
I have been trying to use the awesome analog move plugin from Sanshiro






It gives very smooth gameplay, in particular for mouse control. However, I have noticed that there is a serious issue if you use parallax map (that is, when you use a parallax map with "!" as prefix in the file name, so the parallax map scroll at the same rate as the map)


When the characters move in diagonal direction, all the tiles and event sprites on the map will be shaking. It is not obvious for smaller maps, but it gets serious for larger maps (~3000 pixel parallax map). To show what I mean, I have a short clip showing the bug with my project:










There are name tags above each city/scene (sorry everything is in chinese but you get the idea). If you pay attention when the character is moving diagonally, they shake badly. This happens for tiles or events sprite as well so it really affects the gameplay.


I have been looking into the scripts but did not find a way to solve it. From what I know so far it looks like the analog move script does not have a fix for the map scroll even though it has a completely different way of moving (and step size). I looked at the super orange move too and I saw that script has customized map scroll based on the step size.




I like this one a lot too but the pathfinding script does not work well and slows down the fps a lot for 8 dir move. (I tried to turn on/off switched but they did not seem to help much, at least with all the other plugins I am using).


I'm wondering if anyone is interested in fixing the shaking bug in analog move. It is just such a pity that this plugin does not work for 8dir parallax map.


I'm not familiar with the structure of the map scroll so I lost clue of how to fix it at the moment.


But I'm positive that the problem is that the map scroll is not synchronized with the pixel movement step size. If I move the characters faster (fast speed instead of normal), the shaking won't be obvious. If anyone has suggestions on where to look at I'll really appreciate it :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
I've moved this thread to JS/Plugin Support (as you're not asking for a new plugin). Please be sure to post your threads in the correct forum next time. Thank you.
 

doranikofu

Veteran
Veteran
Joined
Oct 4, 2015
Messages
113
Reaction score
31
First Language
Chinese
Primarily Uses
Game_Map.prototype.parallaxOx = function() {
if (this._parallaxZero) {
return Math.floor(this._parallaxX * this.tileWidth());
} else if (this._parallaxLoopX) {
return this._parallaxX * this.tileWidth() / 2;
} else {
return 0;
}
};

Game_Map.prototype.parallaxOy = function() {
if (this._parallaxZero) {
return Math.floor(this._parallaxY * this.tileHeight());
} else if (this._parallaxLoopY) {
return this._parallaxY * this.tileHeight() / 2;
} else {
return 0;
}
};


use this will fix most of the problem of shaking. I added Math.floor for the x y of parallax.


There is still a little bit of shaking when moving, not as smooth as the default way of moving.  I guess it is still the issue of floating numbers within the analog move plugin itself. But at least it is usable now. Hope this can help other people.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top