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,244 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
view entity's VISIBLE flag not toggable? #179023
01/21/08 05:42
01/21/08 05:42
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
i have a very simply script, and it wont work....
Code:

ENTITY* eSlot1 =
{
layer = 6; // display above view entities with layer 1
//the type is defined later
flags2 = VISIBLE; // visible on screen from the start
}

...//the following is inside my main while loop:
if(key_i == 1)
{
while(key_i == 1){wait(1);}
toggle(eSlot1,VISIBLE);
...



Is it a bug or you just can't toggle the visibility of view entities?


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: view entity's VISIBLE flag not toggable? [Re: PrenceOfDarkness] #179024
01/21/08 07:04
01/21/08 07:04
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
what error message do you get ?

zazang


I like good 'views' because they have no 'strings' attached..
Re: view entity's VISIBLE flag not toggable? [Re: zazang] #179025
01/21/08 17:41
01/21/08 17:41
Joined: Dec 2006
Posts: 78
Nevada, USA
Futurulus Offline
Junior Member
Futurulus  Offline
Junior Member

Joined: Dec 2006
Posts: 78
Nevada, USA
VISIBLE in this case is on flags2, and toggle only works with flags. You're going to have to do it manually this time:
Code:
eSlot1.flags2 ^= VISIBLE;




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