Please or Register to create posts and topics.

Level Transitioning

Page 1 of 2Next

How do i transition from a level with loding screens to another level. I am not using the testchamber elevators.

Have a trigger_changelevel with an info_landmark in the middle of it. Enter the name of the new level aswell as the name of the landmark in the properties of said trigger.

(The landmark is only needed as a formality, initially for back- and forward two sided transitions)

The Aperture Alpha
A map pack coming soon. - click for more information
Image

You never go backwards in Portal 2. Therefore it may be easier to just use a point_changelevel. With the transition instances which valve nicely gave us.
The instances to use are instances/transitions/transition_exit.vmf for the exit transition (end of map) and instances/transitions/transition_entry.vmf for the start of a transition (new map).

In order to use the exit transition correctly with the exit transition instance, create a point_changelevel and name it @changelevel.
With your exit instance you will have to collaspe it. Select your exit transition instance and go to the instancing menu and click collaspe -> selection. Doing that will automatically name your instance entities. You could rename them back to normal i.e. removing the AutoInstance1- prefix but I don't think it entirely matters.
Now click the trigger from the collapsed instance and add a new output: OnStartTouch->@changelevel -> ChangeLevel -> mapnamehere. You can resize the trigger to however big you want it, so then the area the player will start the transition is bigger.

P.S. @Brainstone: Portal 2 uses a info_landmark_exit entity and a info_landmark_entry entity for transitions.

EDIT: In order to spawn in the correct place, the landmarks need to be in the same relative position in the new map.

?????????????????????????????TWP Releases | My Workshop

What I do is use a point_clientcommand with the input command and a parameter of map <name of map> and for an elevator, should you use one, I add a counter to the logic_choreographed_scene.

Big Mood

Hi,

Took me a while to get trigger_changelevel working correctly, but if you want an example I've attached 2 maps to this post.

Map1 & Map2

If you walk into the black text on the back wall of the room, you will be transported from map1 to map2, and then you can walk into the black texture in map2 to get back to map1.

There is also an example in those rooms of how to use Globals between maps. In map1 the button on the right turns the global 'on' and the button on the left turns the global 'off'. In map2 pressing the button will display if the global is 'on' or 'off', this shows how the global can be used between maps.

Not sure about loading screens between maps now, I while ago I did play around with making a 'mod' and packing all the maps into there and then you could include loading screens, but looking at the page I used learn that, looks like it might not be working now since the last DLC. Maybe you could try playing and see what you can come up with...

http://www.se51.net/2011/09/15/how-to-make-your-own-portal-2-mod

HTHs,

Rob

My Portal2 Map: Trapped

My Travel Blog:
Image

Lots of stuff seems to have been broken by the DLC. I'll see if I can get some sort of skeleton mod working.

Falsi sumus crusto!

i found that testing to see if this works in my personal map. It had mixed results. The trigger wont react if you have noclip turned on, so if you turn it off, it does work

Just when I think I understand the system, it changes on me.

is this for a mod or mappack?



Also, I made a map just for you! Sunset
Click Here to view my Workshop and play my puzzlemaker maps
Fracture wrote:
i found that testing to see if this works in my personal map. It had mixed results. The trigger wont react if you have noclip turned on, so if you turn it off, it does work

Why would you even want to transition with noclip on?

?????????????????????????????TWP Releases | My Workshop
ChickenMobile wrote:
Fracture wrote:
i found that testing to see if this works in my personal map. It had mixed results. The trigger wont react if you have noclip turned on, so if you turn it off, it does work

Why would you even want to transition with noclip on?



Also, I made a map just for you! Sunset
Click Here to view my Workshop and play my puzzlemaker maps
Page 1 of 2Next