Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 905 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | chip programmers | 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