Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (dBc), 17,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
two Panels with different bitmaps :S #350544
12/16/10 21:55
12/16/10 21:55
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
hopfel Offline OP
User
hopfel  Offline OP
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
Hey guys,
I want to create two panels, with the same bitmapfile as bitmap,
but not with the same bitmap-pointer,
so I can transform the bitmap from the first panel (with a pixelfunction)
without transforming the bitmap of the second one too.

Atm my code looks like:

Code:
PANEL* panel1 = {bmap = "picture.png";}
PANEL* panel2 = {bmap = "picture.png";}


Now panel1.bmap has the same pointer as panel2.bmap... :S

One solution is just to make a copy of the bitmapfile,
but then the filesize of the whole game is bigger,
and that's anyway not a "real" solution for me.

Hope, someone is so kind to help me. ^-^


Hilf mir, dir zu helfen!
Re: two Panels with different bitmaps :S [Re: hopfel] #350546
12/16/10 22:09
12/16/10 22:09
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Then MAKE two different pointers to this Bitmap:
Code:
BMAP* picture1 = "picture.png";
BMAP* picture2 = "picture.png";
PANEL* panel1 = {bmap = picture1;}
PANEL* panel2 = {bmap = picture2;}



Maybee that is not what you need, maybee you can create a second bitmap with the same size with bmap_createblack() and copy your orginalbitmap in this one. So your folder is not bigger, contains only one bmap.

Last edited by Widi; 12/16/10 22:13.
Re: two Panels with different bitmaps :S [Re: Widi] #350615
12/17/10 16:15
12/17/10 16:15
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
hopfel Offline OP
User
hopfel  Offline OP
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
Oh boy!
I made so many 2D-Games and I was not able to find the solution for this... ARGH! o.-'
Thank you for your help, I should really stop programming that late in the evening. :S


Hilf mir, dir zu helfen!

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