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

Question - Player sprite vanishing when past top border #29

Open
coornio opened this issue Apr 29, 2023 · 0 comments
Open

Question - Player sprite vanishing when past top border #29

coornio opened this issue Apr 29, 2023 · 0 comments

Comments

@coornio
Copy link

coornio commented Apr 29, 2023

As the title implies, NeatBoy disappears when he jumps up and his top exceeds row 0 to go "negative".

2023-04-29.14-41-41.mp4

From my understanding, this behavior is actually controlled via the rom itself, as enabling wrapping allows him to naturally wrap around vertically when falling down, but the same does not occur when moving up.

I understand the reasoning behind it -- you don't want the character's head to be popping up from the bottom of the screen when this occurs, so you're hiding the entire sprite in such a situation. Perhaps, however, it might be possible for you to instead check how many rows behind row 0 the sprite is, and only allow drawing the character from that row down, so that he'd naturally be clipped without disappearing briefly when skirting the edge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant