Player: Automatic scrolling background images sometimes jump

Created on 9 Feb 2016  路  9Comments  路  Source: EasyRPG/Player

Did not test this with RPG_RT, but it seems like a glitch:
bg_jump

Related: #314 and #455.

Patch available WindoScenes

Most helpful comment

I think this is this typo

diff --git a/src/bitmap.cpp b/src/bitmap.cpp
index e54fb610..307f4b35 100644
--- a/src/bitmap.cpp
+++ b/src/bitmap.cpp
@@ -676,3 +676,3 @@ void Bitmap::TiledBlit(int ox, int oy, Rect const& src_rect, Bitmap const& src,
    if (ox >= src_rect.width)   ox %= src_rect.width;
-   if (oy >= src_rect.height)  ox %= src_rect.height;
+   if (oy >= src_rect.height)  oy %= src_rect.height;
    if (ox < 0) ox += src_rect.width  * ((-ox + src_rect.width  - 1) / src_rect.width);

All 9 comments

Yepp they jump at the map boundaries when the map is looping.

Note: it does not jump in map boundaries if the panorama has automatic scroll, then the jump position will vary.

Wow, I do not know what I am trying to achieve here, but this seems already been fixed by an unrelated commit before 0.4.0.

At least in _.flow_ and _Yume Nikki_ it can not be observed anymore.
However, in _Standstill Girl_ in Shadeling Town (start map, just go to the hospital) it still happens. Reopening.

I think this is this typo

diff --git a/src/bitmap.cpp b/src/bitmap.cpp
index e54fb610..307f4b35 100644
--- a/src/bitmap.cpp
+++ b/src/bitmap.cpp
@@ -676,3 +676,3 @@ void Bitmap::TiledBlit(int ox, int oy, Rect const& src_rect, Bitmap const& src,
    if (ox >= src_rect.width)   ox %= src_rect.width;
-   if (oy >= src_rect.height)  ox %= src_rect.height;
+   if (oy >= src_rect.height)  oy %= src_rect.height;
    if (ox < 0) ox += src_rect.width  * ((-ox + src_rect.width  - 1) / src_rect.width);

looks like a candidate, obviously wrong 馃憤

Good find, will test later today, if this fixes the issue in Standstill Girl. Going by the commit info, this bug has been present since 2012 at least... 馃槻

yeah this bug exists since looping maps were implemented because Yume Nikki needed them to be playable. :D

confirmed fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Siltala picture Siltala  路  25Comments

LucasMW picture LucasMW  路  19Comments

s9060666 picture s9060666  路  14Comments

carstene1ns picture carstene1ns  路  18Comments

Ghabry picture Ghabry  路  13Comments