Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,574 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
skycube change #446090
10/04/14 08:26
10/04/14 08:26
Joined: Dec 2009
Posts: 53
Vyshess Offline OP
Junior Member
Vyshess  Offline OP
Junior Member

Joined: Dec 2009
Posts: 53
Hi!
just a little problem.
Does anybody know how I can change the skycube by loading a new level? the manuel says that this can be made by using "ent_morph"
but I don`t know how to write it correct.
Code:
ENTITY* sky =
{
 type = "skycube_level01+6.tga";
 flags2 = SKY | CUBE | SHOW;
}


function level_teleport()
{
 if(level_select == 0)
 {
  ...// at this point the skycube should be changed
  level_load("level01.wmb");
 wait(3);
  }
}
...



what exactly must be writen befor the level load?

ent_morph(sky,skycube_level01) ?
sky = ent_morph(my,skycube_level01)?

doesn`t work. it appears a strange flat 3d objekt at the new level. wtf?


A8 Commercial
A5 Standart
---------------
created games: - Bomber Maniacs
Re: skycube change [Re: Vyshess] #446092
10/04/14 09:44
10/04/14 09:44
Joined: Jul 2004
Posts: 785
Serbia
Iglarion Offline
User
Iglarion  Offline
User

Joined: Jul 2004
Posts: 785
Serbia
You must morph entity after level loading, not before. In your case, you change the sky in the old level.
Just use ent_morph(sky,"skycube_level02+6.tga"); after a new level is created.


IGRAVISION Page - www.igravision.com
RPG project - The Battle For Forgol 92.75%
Re: skycube change [Re: Iglarion] #446095
10/04/14 14:11
10/04/14 14:11
Joined: Dec 2009
Posts: 53
Vyshess Offline OP
Junior Member
Vyshess  Offline OP
Junior Member

Joined: Dec 2009
Posts: 53
THX!! works perfect now!


A8 Commercial
A5 Standart
---------------
created games: - Bomber Maniacs

Gamestudio download | 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