Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi, I tested your shader in a blank project, and it worked fine, but it didn't render in another project, it was always black. The window width and height of this project are 640 x 480, and the camera width and height are also 640 x 480. I adjusted game_width and game_height, and screen_aspect_ratio to 5/4, but it still didn't render. I've been working on this project for a while, and I don't know if there's a conflict somewhere, but I still can't find what's wrong. Can you tell me which event this shader will conflict in? (The upper left corner is CRT rendered, and the rest are normal pictures)

I think I understand why it can't render. If you move the room every time, the shader will not render and will be black, even if you turn on the keep function. If you want to refresh, you have to open or close the full screen once before it can render.

GameMaker has a tendency to resize the display buffers when switching rooms. Calling the included crt.resize_surfaces() method after each room change with a persistent crt object should do the trick, but please let me know if it doesn't, and I can take another look.