Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can't hide an ENITITY in Lite-C? #265855
05/14/09 17:12
05/14/09 17:12
Joined: Sep 2003
Posts: 208
Michael_McCrickard Offline OP
Member
Michael_McCrickard  Offline OP
Member

Joined: Sep 2003
Posts: 208
Why does the entity not hide when it is clicked on? If you have the Lite-C workshops, this is a slightly modified version of the workshop10 script and works with the work10.wmb level.

///////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////

function plane_event()
{
if (event_type == EVENT_CLICK)
{
//this is here only to confirm
//that the event was received
my.z += 50;

//this doesn't hide the entity
reset(me, SHOW);

//...and this doesn't either
//toggle(me, SHOW);
}
}



action rotate_plane()
{
my.emask = ENABLE_CLICK;

my.event = plane_event;
}

function main()
{
mouse_mode = 4;
video_mode = 7;
level_load ("work10.wmb");
vec_set(camera.x,vector(-300, 0, 75)); // place the camera at x = -300, y = 0, z = 50
}

Re: Can't hide an ENITITY in Lite-C? [Re: Michael_McCrickard] #265857
05/14/09 17:15
05/14/09 17:15
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
use the INVISIBLE flag for entities... set(my,INVISIBLE); to hide, reset(my,INVISIBLE); to show... or toggle(my,INVISIBLE);

Last edited by darkinferno; 05/14/09 17:15.
Re: Can't hide an ENITITY in Lite-C? [Re: darkinferno] #265860
05/14/09 17:32
05/14/09 17:32
Joined: Apr 2009
Posts: 274
atari98 Offline
Member
atari98  Offline
Member

Joined: Apr 2009
Posts: 274
Please write in German


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: Can't hide an ENITITY in Lite-C? [Re: darkinferno] #265863
05/14/09 17:34
05/14/09 17:34
Joined: Sep 2003
Posts: 208
Michael_McCrickard Offline OP
Member
Michael_McCrickard  Offline OP
Member

Joined: Sep 2003
Posts: 208
Ahhh, thank you. I get it now. They renamed "VISIBLE" (for panels and texts) to be SHOW. But INVISIBLE is still INVISIBLE.

Re: Can't hide an ENITITY in Lite-C? [Re: atari98] #265896
05/14/09 21:23
05/14/09 21:23
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
Quote:
Please write in German
learn english!


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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