Transparent game window

I think being able to have transparent window game would be very interesting. I’m seeing more and more games and app acting as “widgets” you can place anywhere on your desktop, and being able to make it with GDevelop makes perfect sense to me.

Here’s a game that got quite a lot of traction: Rusty’s Retirement (on Steam)

Or a Youtuber who made a similar idle game called Frog Pond: Frog Pond by shar

But it can be useful for small apps too, not only games.

Features:

  1. Transparent window,
  2. always on top (so user can continue his task while the app stays on screen)
  3. click through transparent pixels (so user can still click, type etc in other apps)

It’s probably not something big and important for the dev team, but if anyone is interested I’ll be really grateful. I’ve tried to mess with Electron and modifying the main.js or index.html of an export game, without success.

2 Likes

#2 is already possible via events today.
#3 isn’t possible because games run in electron (a browser) and cannot allow for click through due to browser and OS standards.

For #1 I believe this action is the closest thing possible and has been in the engine for about a year now.

But otherwise I don’t believe you can make the scene background transparent, which if I remember correctly is another electron limitation. There may be a way around with editing your exported source code but I am not familiar with the specifics

2 Likes

Thanks a lot for your answer. Indeed I tried this action, but the scene just take the default alpha color of the scene, not fully transparent.
Didn’t know for the always on top action though, thank you !

I see, it looks like a dead end here then. I’ll just go with Godot for this specific project, but I’m not that much confident in my coding skills so it worries me.

Thank you again for your time ! Cheers

2 Likes