Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Desktop Screenshots for GameMaker

Capture part/whole screen/all screens inside or outside of your GM games · By YellowAfterlife

Screenshot effect question.

A topic by jfkn1ght created Sep 16, 2020 Views: 318 Replies: 9
Viewing posts 1 to 2

Could this extension capture a small screenshot behind the application window and paste it on that very window (Giving the effect of a transparent window)? Or is that too beyond the scope of this extension?

Developer

If it's really just constant transparency (not a mask or gradient or anything), a pair of WinAPI functions can be utilized. I wrote a mini-post on the matter:

https://yal.cc/unity3d-window-alpha/


what about with game maker?

Developer

As far as I’m aware, no one has made a DLL to do this in GameMaker yet, but I could do one if you’ve got $20 or so.

i could absolutely pay for that. Im looking to replace the game maker window with a transparent character that can run around the screen. Is that doable?

Developer

That’s a different thing, which I already made.

cool! bought it. Is it graphically efficient to be changing the screen shape every frame?

Developer

If you create your polygon shapes in advance (e.g. using window_shape_create_polygon_from_path) and use window_shape_set_nc, the underlying Windows functionality is pretty performant - in my test with flipping between two different dinosaur-based shapes the operation takes between 0.5-1ms on average, which is more than enough to do this at 60fps.

so like if i had a surface it was using, it'd be okay?

Developer

Depends on what you mean by that