Skip to content

fix: BG yDelta scrolling speed, camera getting stuck in non-4:3 ratios - #1323

Merged
K4thos merged 1 commit into
ikemen-engine:masterfrom
Lazin3ss:development
Jul 18, 2023
Merged

K4thos merged 1 commit into
ikemen-engine:masterfrom
Lazin3ss:development

Conversation

@Lazin3ss

@Lazin3ss Lazin3ss commented Jul 17, 2023 •

Copy link
Copy Markdown
Contributor

Camera was getting stuck in a case where floortension was defined and the game had an aspect ratio different from 4:3. The game would try to compensate by modifying drawOffsetY, and this would affect camera BoundLo value. With floortension being defined, the camera would be pushed down by drawOffsetY, potentially creating this stuck effect. Stage initial Y position might be misaligned, though, though it might just be differences in aspect ratio. And tensionhigh/tensionlow behavior needs to be investigated further, since this change might directly affect it.

Also, a bg miscalculation was commented out, since it provoked behavior different from MUGEN 1.1

Thanks to @NeatUnsou for input regarding how to fix ydelta.

Fixes #1319

Camera was getting stuck in a case where floortension was defined and the game had an aspect ratio different from 4:3. The game would try to compensate by modifying drawOffsetY, and this would affect camera BoundLo value. With floortension being defined, the camera would be pushed down a little bit, creating this stuck effect.

Also, a bg miscalculation was commented out, since it provoked behavior different from MUGEN 1.1
@github-actions github-actions Bot added PR: fix This PR implements changes that don't belong to other categories and removed PR: fix This PR implements changes that don't belong to other categories labels Jul 17, 2023
@K4thos
K4thos merged commit 34638cd into ikemen-engine:master Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix This PR implements changes that don't belong to other categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If playing on widescreen, the camera "skips" when the characters jump. yDelta is also different.

2 participants