Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 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
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 | 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