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
1 registered members (TipmyPip), 18,449 guests, and 6 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
Entity-Pointer #139893
07/06/07 12:45
07/06/07 12:45
Joined: Aug 2005
Posts: 31
F
friebo Offline OP
Newbie
friebo  Offline OP
Newbie
F

Joined: Aug 2005
Posts: 31
Hallo,
was mache ich falsch, bzw. warum funktioniert das nicht.

entity* test; // Panel-Entity
bmap test_pcx = <test.pcx>;
string test_string[80];

panel test_panel {
bmap = test_pcx;
layer = 3; pos_x = 0; pos_y = 0;
}

function main() {

str_cpy(test_string,"test_panel");
test = test_string;
test.visible = on;

oder

test = test_panel;
test.visible = on;

oder

test = "test_panel";
test.visible = on;

oder

test = handle ("test.panel");
test.visible = on;

test = handle (test.panel);
test.visible = on;

oder

str_cpy(test_string,"test_panel");
test = handle (test_string);
test.visible = on;

}

Nicht eine Variante funktioniert.
Vielen Dank

Re: Entity-Pointer [Re: friebo] #139894
07/06/07 12:58
07/06/07 12:58
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Soweit ich weiss kann man einem Panel keinen Entity Pointer hinzufügen...
Wenn du einfach nur das Panel Visible/Invisible machen willst dann mach das so:

Code:

Panel Test_pan
{
bmap=test_pcx;
Layer=3;
Pos_X=0;
Pos_Y=0;
flags=visible;
}

Function Panel_Invisible
{
Test_Pan.visible=off;
}

Function Main
{
load_level ("Dein Level.wmb");
wait(1);
on_Space=Panel_Invisible(); //Wenn du nun Space(Leertaste) drückst, wird das Panel unsichtbar
}



Hoffe ich konnte dir damit was helfen

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: Entity-Pointer [Re: rvL_eXile] #139895
07/06/07 14:55
07/06/07 14:55
Joined: Aug 2005
Posts: 31
F
friebo Offline OP
Newbie
friebo  Offline OP
Newbie
F

Joined: Aug 2005
Posts: 31
Vielen Dank,
wollte jedoch genau der Entity das Panel zuweisen.


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