transparent layout?

For questions about using Classic.

Post » Wed Jun 30, 2010 9:22 pm

i am making a game without a window titlebar and border, but i don't know if it possible to make the layout background invisible, so, if possible to do it?
B
10
G
2
Posts: 33
Reputation: 1,091

Post » Thu Jul 01, 2010 1:38 am

[quote="lestar":123ewo1o]i am making a game without a window titlebar and border, but i don't know if it possible to make the layout background invisible, so, if possible to do it?[/quote:123ewo1o]
As far as I know that isn't possible, I'm afraid. (If you want to see the desktop behind your game, that is)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Thu Jul 01, 2010 2:25 am

bad news :(

and yes, my game has a irregular frame, and a want to make transparent the part that i'm not using for the game


and is there a way to make it using phyton? :?
B
10
G
2
Posts: 33
Reputation: 1,091

Post » Thu Jul 01, 2010 6:57 pm

We come to the borders of my knowledge, so my answer is a bit vague. I know that shaping a window is done by using a black&white bitmap and that it is done on the sytem layer. Also I would assume that shaping a window is only possible on the 2D-layer of the system. In other words: with DirectX as in Construct you can't have a shaped window, regardless of using Constructs parameters or using Python. I hope some other with a bit more knowledge can answer it more precise.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Thu Jul 01, 2010 9:26 pm

[quote="tulamide":1d1h4njn]We come to the borders of my knowledge, so my answer is a bit vague. I know that shaping a window is done by using a black&white bitmap and that it is done on the sytem layer. Also I would assume that shaping a window is only possible on the 2D-layer of the system. In other words: with DirectX as in Construct you can't have a shaped window, regardless of using Constructs parameters or using Python. I hope some other with a bit more knowledge can answer it more precise.[/quote:1d1h4njn]

For the sake of argument, I'm going to agree this is more or less correct. Suffice to say that it's generally outside the scope of what the DirectX or XNA libraries can do, much less Construct.

If you really wanted to do this, it would be necessary to write code at a slightly lower level. It's certainly doable in C++ or C#, but you'll find that you're largely on your own for the graphics handling, etc, once you're at that point.

I've never tried integrating DirectX or XNA with it, personally, so take this with a grain of salt: If you're feeling inclined to be adventurous, here's a link (C#) that could be useful. I suspect that you could take a form like that, render your graphics to video memory in the background (via DirectX), and blit them onto the surface of the form.

Good luck! :D
B
2
S
1
G
2
Posts: 48
Reputation: 896


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests