Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,094 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panel and alpha mask #237824
11/22/08 18:06
11/22/08 18:06
Joined: Aug 2006
Posts: 155
R
RyuMaster Offline OP
Member
RyuMaster  Offline OP
Member
R

Joined: Aug 2006
Posts: 155
Hi! Is it possible to make such feature:

Lets say, I have large black panel on screen.

And I have other panel/image attached to mouse, like white circle (mask).

Black panel becomes transparent in place where white circle is placed, so, basically, white circle should act as alpha mask.

Do I have to render panel to bitmap and process it somehow, or maybe there is other way?

Regards,
Konstantin.

Last edited by RyuMaster; 11/22/08 18:07.

What kills me not, that makes me stronger.

***Working on RPG/RTS***
Re: Panel and alpha mask [Re: RyuMaster] #237858
11/22/08 23:53
11/22/08 23:53
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
The easiest way is to create a oversized bitmap for the black panel with a transparent circle in its center and then simply move the panel. If it is larger than the screen the user won't notice if the alpha mask is move or the panel itself.

But your idea is also possible. Have a look in the manual under bmap_blit.


Always learn from history, to be sure you make the same mistakes again...
Re: Panel and alpha mask [Re: Uhrwerk] #241734
12/18/08 13:42
12/18/08 13:42
Joined: Aug 2006
Posts: 155
R
RyuMaster Offline OP
Member
RyuMaster  Offline OP
Member
R

Joined: Aug 2006
Posts: 155
Actually, I try to mimic Fallout's 2 effect. When player is behind the wall, some part of wall becomes transparent to see the player. And every wall in my game is represented by panel.

So, basically, is there some way to make some part of particular panel transparent, without involving heavy coding?


What kills me not, that makes me stronger.

***Working on RPG/RTS***

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1