Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 946 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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