Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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
Why can't I make more than one panel visible at a time #207741
05/22/08 01:29
05/22/08 01:29
Joined: Oct 2007
Posts: 27
P
phmenard Offline OP
Newbie
phmenard  Offline OP
Newbie
P

Joined: Oct 2007
Posts: 27
I'm fairly new to lite-c and starting to dive right into developing games. I'm starting out by building all the user interfaces first. But I've run into a problem it seems, I want more than one panel to be visible at any given time ... but every time I try to test the engine crashes ... why is this. I have two basic panels as follows ...

PANEL* info_pan =
{
pos_x = 0; pos_y = 560;
bmap = black_map;
layer = 1;
flags = VISIBLE;
}

PANEL* map =
{
pos_x = 101; pos_y = 101;
bmap = map;
layer = 2;
flags = VISIBLE;
}

when I run the code we crash ... if I comment out any one of the visible flags in either PANEL the game runs and that panel is showing ...

What am I doing wrong??

Re: Why can't I make more than one panel visible at a time [Re: phmenard] #207756
05/22/08 05:39
05/22/08 05:39
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Hi,

everything looks ok except the statement in the panel definition of map:

bmap = map;

Because you are assigning a bitmap pointer that has the same name as the panel.

Change this as first try.

Re: Why can't I make more than one panel visible at a time [Re: HeelX] #207885
05/22/08 20:54
05/22/08 20:54
Joined: Oct 2007
Posts: 27
P
phmenard Offline OP
Newbie
phmenard  Offline OP
Newbie
P

Joined: Oct 2007
Posts: 27
HeelX ... thanks a bunch, works just fine now. I'm migrating over from java so its common to have variables with the same name over there ... I'll keep an eye out for that ...

Again thanks.


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