Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: crash when not declaring anim/sprite files on char, move "no-sprite" anim from -2 to -1 #1448

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

Lazin3ss
Copy link
Contributor

Also, negative anim handling was improved to fix some dizzy system issues.

BREAKING CHANGE:
"No-sprite" anim used to be "-2", but now it's "-1".

@github-actions github-actions bot added the PR: fix This PR implements changes that don't belong to other categories label Oct 19, 2023
@Lazin3ss Lazin3ss changed the title fix: crash when not declaring anim/sprite files on char, change no-sprite anim to -1 fix: crash when not declaring anim/sprite files on char, move "no-sprite" anim from -2 to -1 Oct 19, 2023
@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 Oct 19, 2023
@K4thos K4thos merged commit f924037 into ikemen-engine:master Oct 19, 2023
4 checks passed
Lazin3ss added a commit to Lazin3ss/Ikemen-GO that referenced this pull request Oct 24, 2023
Clamp-to-zero animation now only applies to ChangeAnim/ChangeAnim2 SCTRLs, since that's how it really works in MUGEN. Changing anims from ChangeState SCTRLs or Statedef doesn't do this.
Lazin3ss added a commit to Lazin3ss/Ikemen-GO that referenced this pull request Oct 26, 2023
Anim No. negative values are now being handled like this:

- In ChangeAnim/ChangeAnim2 SCTRL: Any negative value (except for -2) is clamped to 0
- In ChangeState/SelfState SCTRL: Any negative value (except for -1 and -2) is clamped to 0
- In StateDef: Any negative value (except for -1 and -2) throws a warning message in the console

This is the best approach to mixing MUGEN 1.1 handling of negative values and Ikemen GO's -2 anim (which is a 'no-sprite' anim).
K4thos added a commit that referenced this pull request Oct 26, 2023
fix: Refine anim no. handling from #1448, PlayBGM SCTRL leaking to the character select screen
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.

2 participants