Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, RealSerious3D, chsmac85), 980 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
NOFLAG1 problem #187980
03/11/08 17:01
03/11/08 17:01
Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
Nagashi Offline OP
Member
Nagashi  Offline OP
Member

Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
I'm trying to set FLAG1 to on, for my skycube entity, so I can disable it in my Minimap(space themed)... I can do this manually in WED and get it to work but I don't usually create a BSP boxes for my sky (on a count of them having to be scaled so big to avoid clipping) but I can't seem to accomplish this with just code... if I can get it to work in WED it stands to reason it will work in code? Any advice would be welcome

Cheers


No rest for the wicked.
__________________________

Ironbound Studios
__________________________
Re: NOFLAG1 problem [Re: Nagashi] #187981
03/16/08 05:37
03/16/08 05:37
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
set(entity,FLAG1);

is that what you mean?

Re: NOFLAG1 problem [Re: Tobias] #187982
03/21/08 00:33
03/21/08 00:33
Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
Nagashi Offline OP
Member
Nagashi  Offline OP
Member

Joined: Oct 2002
Posts: 150
Prince Edward Island, Canada
Yes, I suppose I should have included some code… I should know better. This is exactly what I mean, this is my code.
Code:

//First I create a sky cube.
ENTITY* skycube =
{
type = "cariad_cube+6.tga";
flags2 = SKY | CUBE | VISIBLE;
}

//Then I create a second view.
VIEW* camera1_map =
{
layer = 1;
pos_x = 0;
pos_y = 0;
size_x = 320;
size_y = 240;
arc = 35;
aspect = 1;
ambient = 10;
fog = 10;
genius = NULL;
flags = VISIBLE | NOFLAG1;
}

//And last I create a simple function
function turn_me_off()
{
set(skycube,FLAG1);
}


As you can see the code is far from complex. Why will this command not work on sky entities? Or is there no rhyme or reason?


No rest for the wicked.
__________________________

Ironbound Studios
__________________________

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