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
2 registered members (TipmyPip, AndrewAMD), 14,136 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
problem with panels #281269
07/26/09 14:45
07/26/09 14:45
Joined: Jul 2009
Posts: 11
S
Saruniks Offline OP
Newbie
Saruniks  Offline OP
Newbie
S

Joined: Jul 2009
Posts: 11
hello all, I am new in this forum ant game creating.
I don't know if this is right section to write about problems and ask for help but...

I have problem with panels, I have few menu panels and when I start game they all open at once, they are all in one place so they don't seem.

so, if you could help me, I would like that when I start my main pannel would be the only one, if it is possible...
(maybe it's problem with layers or not, I don't know)
ps : I don't know if I need to post script here.

Re: problem with panels [Re: Saruniks] #281276
07/26/09 15:08
07/26/09 15:08
Joined: Jul 2009
Posts: 11
S
Saruniks Offline OP
Newbie
Saruniks  Offline OP
Newbie
S

Joined: Jul 2009
Posts: 11
fixed, I don't need help anymore


flags = VISIBLE was problem

Re: problem with panels [Re: Saruniks] #281280
07/26/09 15:12
07/26/09 15:12
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Hi, and welcome to the forum! smile
You could either post it here or in the scripting section, so it's fine wink

If all of the panels open at once, you have probably set "flags |= SHOW" in all of your panels.

Instead of doing that, you should show the main panel from function main.

Post your code if you want me to show you how to do it smile

Edit: Ah okay wink

Last edited by Claus_N; 07/26/09 15:12.
Re: problem with panels [Re: Claus_N] #281281
07/26/09 15:17
07/26/09 15:17
Joined: Jul 2009
Posts: 11
S
Saruniks Offline OP
Newbie
Saruniks  Offline OP
Newbie
S

Joined: Jul 2009
Posts: 11
thanks, smile I will know I can post here smile

Re: problem with panels [Re: Claus_N] #282609
08/02/09 14:54
08/02/09 14:54
Joined: Aug 2009
Posts: 11
A
alwaysblack Offline
Newbie
alwaysblack  Offline
Newbie
A

Joined: Aug 2009
Posts: 11
Actually, I have the same problem, so if you've got any pointers...

Re: problem with panels [Re: alwaysblack] #282611
08/02/09 14:58
08/02/09 14:58
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
@alwaysblack
What problem exactly? smile All panels showing up at game start?

Re: problem with panels [Re: Claus_N] #282616
08/02/09 16:06
08/02/09 16:06
Joined: Aug 2009
Posts: 11
A
alwaysblack Offline
Newbie
alwaysblack  Offline
Newbie
A

Joined: Aug 2009
Posts: 11
My panel shows up OK, but I can't seem to set or reset the VISIBLE flag no matter what syntax I use. It compiles OK, but just doesn't change the flag.

Rather than embarass myself with this minor problem, maybe it's my overall strategy that's at fault. I'm trying to create a structure for my game, which is essentially 2D. I want to have a start menu screen, where the player can create a character and save and load it, and then a series of other screens that manage the character in play, a map screen, inventory screen etc.

My first guess was to create each screen as a set of panels that were controlled by a single variable that determined what 'screen' was supposed to be showing.

Do you think that sounds reasonable? Or am I barking up the wrong tree?

Re: problem with panels [Re: alwaysblack] #282619
08/02/09 16:16
08/02/09 16:16
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
The "visible" flag was renamed to "SHOW" in Lite-C for some reason, so you need to use SHOW instead wink

That sounds fine yeah smile there isn't just one way, or "the right way" of doing things - it depends on the programmers preference, and your solution does indeed sound reasonable smile

Programming is like art - every artist got its own style and habits.

Re: problem with panels [Re: Claus_N] #282630
08/02/09 17:34
08/02/09 17:34
Joined: Aug 2009
Posts: 11
A
alwaysblack Offline
Newbie
alwaysblack  Offline
Newbie
A

Joined: Aug 2009
Posts: 11
Hmm, yes I've seen a few solutions that suggested that it was SHOW instead of VISIBLE, but I tried that and the compiler gave me the error that show wasn't understood. I'm not really sure about what defines which language is being used, is it the includes? <litec.h> and/or <defaultc.h> and/or <acknex.h>. The distinctions between C script, lite c, pure and legacy modes are lost on me at the moment.

Re: problem with panels [Re: alwaysblack] #282635
08/02/09 18:16
08/02/09 18:16
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
You should be using acknex.h when using gamestudio smile and often default.c is used as well, but isn't required - default.c should only be used when using acknex.h.

Just remember that Acknex is the name of the game engine, hence acknex.h should be used when you are programming a game using Gamestudio/Acknex.


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