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
Page 2 of 2 1 2
Re: Too many panels [Re: Chris_Newman] #238034
11/24/08 10:25
11/24/08 10:25
Joined: Nov 2008
Posts: 19
Sweden
Alof Offline
Newbie
Alof  Offline
Newbie

Joined: Nov 2008
Posts: 19
Sweden
Originally Posted By: Chris_Newman
#include <panels.h>

put that at the top of your main file
put panels.c in the same dir.


Unless ofcourse you don't make the file's name "panels.c" -
then it'll obviously be <panels.c> just a reminder there! smile

And yes - as he sais above, put the scripts in the same dir. And type:

#include <panels.c>

In your main script.

Hope this helps!

//Regards, Alof.


"If you say 'plz' because it's shorter than 'please', then I'll say 'no' because it's shorter than 'yes'.
Re: Too many panels [Re: Chris_Newman] #238069
11/24/08 17:35
11/24/08 17:35
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Thanks. I saw that #include thing in the manual, but wasn't sure that was it.
Did you make a type error though? I am thinking panels.c should be panels.h, right?

EDIT:
Understood. Hey where did your last post come from, and go? Are we communicating in realtime?


Last edited by JGGamer; 11/24/08 17:41.
Re: Too many panels [Re: JGGamer] #238076
11/24/08 18:08
11/24/08 18:08
Joined: Nov 2008
Posts: 19
Sweden
Alof Offline
Newbie
Alof  Offline
Newbie

Joined: Nov 2008
Posts: 19
Sweden
Well I use to make 'em *c not *h... but - maybe *h's better? I don't know! I usually make the other scripts .c aswell ^^'

Haven't done this too long though! So if anyone more expereinced tell you to stick with *h - then you should ofcourse do that... and I'll do too >.>


"If you say 'plz' because it's shorter than 'please', then I'll say 'no' because it's shorter than 'yes'.
Re: Too many panels [Re: Alof] #238116
11/25/08 00:38
11/25/08 00:38
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Sorry, that's my mistake. I didn't understand what was happening. I tried it though and I dont see my panels.

I have #include <my_panels.c> at the top, and a seperate script named my_panels, but when I run the main script, I don't see the panels. Is there something I missed?

Gordon I need some help understanding your code. I thought I would get it worked out by looking at the manual, but I am getting confused. Could you explain the lines in the script please? For example, what does the [5] in PANEL* Panels[MAX_X][MAX_Y][5]; mean? Can I replace [MAX_X][MAX_Y] with screen_size.x and screen_size.y? I'd appreciate hearing from you. Thanks

Re: Too many panels [Re: JGGamer] #238179
11/25/08 12:22
11/25/08 12:22
Joined: Nov 2008
Posts: 19
Sweden
Alof Offline
Newbie
Alof  Offline
Newbie

Joined: Nov 2008
Posts: 19
Sweden
You're certain that you don't saved the <my_panels> file as a wdl file? If you're certain that it's <my_panels.c> and you've wrote:

#include <my_panels.c>

Then... that should work fine shocked


"If you say 'plz' because it's shorter than 'please', then I'll say 'no' because it's shorter than 'yes'.
Re: Too many panels [Re: Alof] #238183
11/25/08 13:02
11/25/08 13:02
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Yes I did that and it's not working.
Don't worry, it's probably just some small error that's right in front of my nose, and I am not seeing it. I'll go over it again and see what happens. Thanks

Re: Too many panels [Re: JGGamer] #238391
11/27/08 00:18
11/27/08 00:18
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
you don't need to define new headers or code.

create a panel as you would/did previously
Code:
PANEL* mypan = etc.....


then simply change it with
Code:
mypan.bmap = "woot.bmp"


this is in it's simplest form but will hopefully get you moving forward again

Page 2 of 2 1 2

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