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 (OptimusPrime, AndrewAMD), 14,580 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
Stupidly simple pointer help #135094
06/09/07 17:28
06/09/07 17:28
Joined: Jul 2004
Posts: 59
T
ToddWorld Offline OP
Junior Member
ToddWorld  Offline OP
Junior Member
T

Joined: Jul 2004
Posts: 59
Anyone want to field what should be a simple question? I'm just trying to be able to change the bmp of a panel in a function and step 1 of that is setting up the pointer.

Any clue why this gives me a syntax error? (invalid character)
bmap messagePanel_tga = "messagePanel1.tga";

especially since this: BMAP* compass_map = "compass.pcx";
is from the help file?

So far the scripting tutorial and manual have been pretty much pointless on helping with pointers other than assigning one to an entity. Given that cut and pasting the samples aren't working too swift.

Thanks...just a bit frustrated.
Todd

Re: Stupidly simple pointer help [Re: ToddWorld] #135095
06/09/07 17:43
06/09/07 17:43
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
simple example Code:

bmap pic_one = <MyPicture1.tga>;
bmap pic_two = <MyPicture2.tga>;

panel my_panel
{
bmap = pic_one;
pos_x = 10;
pos_y = 10;
layer = 2;
flags = visible;
}

function change_panel
{
my_panel.bmap = pic_two;
}


That should give you an idea how to change the bitmap of a panel during run time.

Re: Stupidly simple pointer help [Re: Xarthor] #135096
06/09/07 18:15
06/09/07 18:15
Joined: Jul 2004
Posts: 59
T
ToddWorld Offline OP
Junior Member
ToddWorld  Offline OP
Junior Member
T

Joined: Jul 2004
Posts: 59
Thank you very much that got done what I was intending to do with the panels. I guess I'll worry about figuring out the Pointer thing for anything except an entity at a later date.

Thanks again especially for the quick reply.

Todd


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