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

Player sprite shows through dialogs in Parallax scenes #1593

Open
LordRembo opened this issue Sep 23, 2024 · 3 comments
Open

Player sprite shows through dialogs in Parallax scenes #1593

LordRembo opened this issue Sep 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@LordRembo
Copy link

LordRembo commented Sep 23, 2024

Describe the bug
When showing a dialog in a scene that uses parallax (any kind of dialog), if it overlaps with the player, the player sprite shows through the dialog content.

To Reproduce
Steps to reproduce the behavior:

  1. Add a Platformer scene, make it use parallax
  2. Add a dialog menu to the Select button
  3. Display your Player somewhere on the screen where it will overlap with the dialog
  4. Run the game, trigger the dialog
  5. You'll see your Player sprite showing through the inner part of the dialog frame (the light green color) but not the frame border

Expected behavior
I'd expect the dialog to appear in front of the Player, hiding the overlapping pixels.

Screenshots
Screenshot 2024-09-23 at 21 58 16

Platform (please complete the following information):

  • OS: macOS 12.7.4
  • App version 4.1.3 as well as 3.1.x
@LordRembo LordRembo added the bug Something isn't working label Sep 23, 2024
@LordRembo
Copy link
Author

It was mentioned in the Discord that the reason is that Dialogs and Parallax use the same mechanism. While a feature of the system, I think this should at least be documented with workarounds: eg. hiding the Player on trigger, and showing it again after the dialog script.

@smfhacking
Copy link

I think that only happens to you.

ooo maybe you used green when making the game's text font

since green is transparent

@joeledge
Copy link

This is a fairly common issue, a workaround is to hide all sprites before the dialogue and show after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants