Gamestudio Links
Zorro Links
Newest Posts
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
zorro with ccxt?
by qin. 01/07/26 07:50
The new evaluation system
by jcl. 01/05/26 08:50
bar time, right side open or close?
by Spirit. 01/03/26 08:10
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Grant, Quad), 3,935 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Clipping part of a panel #423029
05/23/13 05:34
05/23/13 05:34
Joined: Aug 2007
Posts: 6
inferno Offline OP
Newbie
inferno  Offline OP
Newbie

Joined: Aug 2007
Posts: 6
Hello Everyone,

I have a quick question regarding panels. Is there any way to clip part of a panel?

Here is a small demonstration:

[ ] | [ ]
[A] [ B ] | [CLIPPED[A] B ]
[ ] | [ ]

Lets say I have two panels, A and B. If I were to move panel B towards A, and when it "collides" with panel A, can the portion of panel B that is left of panel A to be clipped?

What I am trying to achieve is the behavior of a window but with panels.

Hope this is clear confused . Thank you laugh .

Re: Clipping part of a panel [Re: inferno] #423030
05/23/13 05:42
05/23/13 05:42
Joined: Aug 2007
Posts: 6
inferno Offline OP
Newbie
inferno  Offline OP
Newbie

Joined: Aug 2007
Posts: 6
Opps, following is a better "image". I will get an actual picture uploaded if this is not clear. Thanks.



Two panels A & B,
[A] [........B.......] |

Part of panel B passed panel A
[...CLIPPED..[A]...NOT CLIPPED B.. ]

Re: Clipping part of a panel [Re: inferno] #423034
05/23/13 08:22
05/23/13 08:22
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
You can change the pixels alpha to 0 to make parts of the panel bitmap "invisible". This can be done with "pixel_..." instructions. To restore the clipped pixels you can call bmap_purge.

Re: Clipping part of a panel [Re: oliver2s] #423062
05/23/13 15:39
05/23/13 15:39
Joined: Aug 2007
Posts: 6
inferno Offline OP
Newbie
inferno  Offline OP
Newbie

Joined: Aug 2007
Posts: 6
Thanks a lot!!! This is exactly what I was looking for laugh


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

Gamestudio download | 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