Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 1,365 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | 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