Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 744 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
problem with sky #403925
06/28/12 12:48
06/28/12 12:48
Joined: Oct 2010
Posts: 73
0110111
C
CodeMaster Offline OP
Junior Member
CodeMaster  Offline OP
Junior Member
C

Joined: Oct 2010
Posts: 73
0110111
how i can change sky textures in c-script after level change?
I read that i must use ent_morph for this but i do not know how define type.

Code:
SKY sky_1 = {
	type = "sky_day1.tga";
	layer = 3;
	scale_x = 0.30;
	tilt = -20;
	flags = CYLINDER | OVERLAY | SHOW;
}

SKY sky_2 = {
	type = "sky_day2.tga";
	layer = 4;
	alpha = 40;
	scale_x = 2.2;
	speed_u = 15;
	tilt = -200;
	flags = DOME | OVERLAY | SHOW;
}



Re: problem with sky [Re: CodeMaster] #403928
06/28/12 13:36
06/28/12 13:36
Joined: Oct 2010
Posts: 73
0110111
C
CodeMaster Offline OP
Junior Member
CodeMaster  Offline OP
Junior Member
C

Joined: Oct 2010
Posts: 73
0110111
nevermind, i just figure out that SKY is entity blush

Re: problem with sky [Re: CodeMaster] #403935
06/28/12 16:06
06/28/12 16:06
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
what did you end up doing? I had this problem a few weeks ago but I just gave up on it until I find a solution.

Re: problem with sky [Re: xbox] #403936
06/28/12 16:14
06/28/12 16:14
Joined: Oct 2010
Posts: 73
0110111
C
CodeMaster Offline OP
Junior Member
CodeMaster  Offline OP
Junior Member
C

Joined: Oct 2010
Posts: 73
0110111
i was thinking that sky is not member of entity but simply use ent_morph where sky_1 is entity:
Code:
function change_sky(){
	ent_morph(sky_1,"sky1.tga");
}

on_s = change_sky();




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