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

In-Game: Using a filter/effect on an instances layer makes its instances draw in GUI space #8613

Open
GameDevTosh opened this issue Dec 4, 2024 — with GM Bug Reporter · 0 comments
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes

Comments

@GameDevTosh
Copy link

GameDevTosh commented Dec 4, 2024

Description

If I have an instance drawing a surface to the regular draw event at that instances x and y, it draws fine. However, if I enable a filter/effect on that instances layer, the surface/instance begins drawing the surface, and itself, to gui space, even if the instance doesn't have a draw gui event.

How it looks normally drawn:
Image

How it looks with a filter/effect on it:
Image

Steps To Reproduce

  • Run the included project
  • Observe that the instance in Room1 on the "No_Effect" layer runs correctly.
  • Hide the "No Effect" layer, and make the "With_Effect" layer visible in the room. This layer has the exact same instance as the other layer, only it has the "Old Film" effect enabled.
  • Observe it is now in gui space, and drawing in the wrong place (top left)
  • If you add draw_self() to the draw_regioned_sign() method at the very end, it will also draw the assigned instances sprite in gui space.
  • You can add draw_self() to a draw_gui event to confirm this as well, as it will draw in the exact same spot.
  • The final layer called "Billboards", is what has to be done to make it work with the effect on, by converting regular coordinates to gui coordinates, and scaling the surface by 4.

P.S: This happens in both monthly and latest beta.

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.700 Runtime v2024.1100.0.718

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

Which platform(s) are you seeing the problem on?

Windows

e6ceac2f-333f-4ff8-ab5d-4de053046153

@gm-bug-reporter gm-bug-reporter bot added runner-bug In-game bugs with the "GameMaker Studio 2" runtimes project This issue has a sample project attached labels Dec 4, 2024
@stuckie stuckie moved this from Triage to Backlog in Team Workload Dec 4, 2024
@YYDan YYDan changed the title Using a filter/effect on a layer makes instances draw in gui space In-Game: Using a filter/effect on an instances layer makes its instances draw in GUI space Dec 4, 2024
@jackerley jackerley assigned pkraif and unassigned jackerley Dec 4, 2024
@pkraif pkraif moved this from Backlog to In Progress in Team Workload Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: In Progress
Development

No branches or pull requests

3 participants