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

[BUG} overlay issues #116

Open
Veund opened this issue May 4, 2019 · 5 comments
Open

[BUG} overlay issues #116

Veund opened this issue May 4, 2019 · 5 comments

Comments

@Veund
Copy link

Veund commented May 4, 2019

im using the dev build of gb studio on windows 7

when i use the overlay function after a display text, the text box is on top of the overlay at the top of the screen
bug
bug2

@RichardULZ
Copy link
Contributor

Intended, It's a feature!
The Gameboy's Overlay layer is used to draw text without breaking the background.
Use Show overlay to clear/make the overlay layer completely white or black.
image

@Veund
Copy link
Author

Veund commented May 4, 2019

yeah, i know how they work, I'm saying the display text is getting stuck on the overlay when you run an overlay after a display text as shown on my second photo with the text box at the top of the screen

@RichardULZ
Copy link
Contributor

It would be wasteful to clear the overlay layer after every text box, and the show overlay function (Not Move overlay) already has the option to clear.
Your script of

Hide overlay,
Text "MORTALS!!!",
Wait 0.5 sec

Does not produce the shown result.

@Veund
Copy link
Author

Veund commented May 4, 2019

I may have missed a show overlay

Add a show overlay after the wait

@RichardULZ
Copy link
Contributor

For anyone else that encounters this.
Show Overlay and Move Overlay are different functions, Show Overlay will fill the buffer White or Black, with a position, set that to X0 Y18 to clear it while off screen,
Move overlay will only move it, not clear.
This is Important for later features / text box functionality, and working as intended,

TL;DR solution.
Use Show Overlay (Black) (offscreen) before Move Overlay after using a text box.

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

2 participants