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 (AndrewAMD), 14,661 guests, and 5 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
changing levels problem #201522
04/09/08 18:38
04/09/08 18:38
Joined: Jun 2006
Posts: 16
V
vamp_0921 Offline OP
Newbie
vamp_0921  Offline OP
Newbie
V

Joined: Jun 2006
Posts: 16
I am creating a large open based game and I am creating different levels for each section of the game. One level is the outdoor terrain and another is a town and so on. I can get it to change from the first level to the second level, and second to third level, but when i try to go back to level 2 from level 3 it starts me in level 2 where i placed the entity biped player, and not in the entry point. i used levels00.wdl script and i cant get it to work correctly. Also if i keep changing back and forth from levels 2 and 3 then it will start me at a random place in the sky in level 3 and same with level 2.I am using exit and entry points and giving them (i believe) the correct id numbers. Any help would be nice.

Re: changing levels problem [Re: vamp_0921] #201607
04/10/08 00:58
04/10/08 00:58
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
ok i dont use the templates but this is how i would do this...

I think the reason you keep going back to the start position is because the level keeps getting restarted (level_load) and then the player's position is reset. I would make a vector that can store the player's position before you leave the level and then read it back when you re-enter the level.

var level_2_player[3] = 0,0,0;

action goto_level_2()
{
level_2_player[0] = player.x;
level_2_player[1] = player.y;
level_2_player[2] = player.z;
level_load("level2.wmb");
}

Then apply this action to an entity in which you want to trigger a change to level 2.

Might not be code-saving but i think it should work. Sry if it doesn't.




Last edited by DJBMASTER; 04/10/08 01:00.
Re: changing levels problem [Re: DJBMASTER] #201704
04/10/08 17:15
04/10/08 17:15
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
check all of your entry and exit numbers, they should change as you set them for the new levels. it sends you back when you have assigned the wrong id or level number. check those then you should be fine. the id's should be different per level and the id should be different as well.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: changing levels problem [Re: vamp_0921] #201712
04/10/08 18:31
04/10/08 18:31
Joined: Jun 2006
Posts: 16
V
vamp_0921 Offline OP
Newbie
vamp_0921  Offline OP
Newbie
V

Joined: Jun 2006
Posts: 16
Ok so here is where i am at. tell me if i am doing something wrong here, because that is always a large possibility. I started off creating a new game, named it level 1. made a hollowed cube added an entity made it plbiped( in the very center at the top of the cube so he would fall) and a sphere model (at the bottom, on the floor). the sphere is at the right and made it the level exit point. I then created another level with the name of level 2. same as level 1 but i made the sphere at the left side, gave it level entry and made the level a different texture. i then went back to level one and made the exit point have an id of 1 and a target of 2. the entry point in level 2 has an id of 2. so it should go from level 1 to the far left side of the room in level 2, but it starts me out at the top of level two in the middle. i fall to the floor and that shows me that i am starting where the player entity is and not the start point. that help you any in telling me what i am doing wrong. do i need to give the exit and entry entities more than just id and target?

Re: changing levels problem [Re: vamp_0921] #202734
04/16/08 17:46
04/16/08 17:46
Joined: Oct 2006
Posts: 106
i_program_games Offline
Member
i_program_games  Offline
Member

Joined: Oct 2006
Posts: 106
I assume you rebuilt the rooms with the entity option after making those adjustments?


Chaos is a paradox consistently inconsistent.

Moderated by  HeelX, rvL_eXile 

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