Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 13:15
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (TipmyPip, alx, Martin_HH, 1 invisible), 5,110 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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