# Switching between two levels

**URL:** <https://forums.unrealengine.com/t/switching-between-two-levels/1202257>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [June 17, 2023, 2:41pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257 "2023-06-17T14:41:01Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 17, 2023, 2:41pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/1 "2023-06-17T14:41:01Z")

</div>

When I’m trying to go from one level to another level using Trigger blueprint it keeps switching between two levels and does not stay in one level. Can anyone help me with this ?

---

<div class="post-metadata">

**Author:** ![rokenrock](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokenrock/32/1040844_2.png) [@rokenrock](https://forums.unrealengine.com/u/rokenrock)\
**Post date:** [June 17, 2023, 3:09pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/2 "2023-06-17T15:09:43Z")

</div>

You’ll have to show us what your setup is.

If it switches between the two levels in an infinite loop, that likely means you’re spawning inside the trigger or something similar.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [June 17, 2023, 8:20pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/3 "2023-06-17T20:20:00Z")

</div>

Hey there @abhip03! Welcome to the community! Roken is right, it’s likely that your overlap is firing and triggering the level change immediately. If your character isn’t inside the trigger, it’s possible that your overlap isn’t checking what it’s coming in contact with, and is triggering on the terrain it’s touching. (This issue is extremely common). Could we see your setup if that guess was incorrect?

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 21, 2023, 8:02am UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/4 "2023-06-21T08:02:19Z")

</div>

Yeah sure, here it is the ss of it’s setup.

 ![Screenshot 2023-06-21 132920](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/2/e3255982d9024b51745e9d329bb521afb09eac3b.png)

Thank you for helping me.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [June 21, 2023, 8:36am UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/5 "2023-06-21T08:36:22Z")

</div>

Looks like your overlap is checking if it’s the player with that cast, so it must be touching the player when it spawns or is in contact with some component of the player. Was Roken correct in assuming your end goal is overlapping the player spawn or close enough to it?

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 21, 2023, 8:39am UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/6 "2023-06-21T08:39:17Z")

</div>

Yes Roken is right.

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 22, 2023, 9:56am UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/7 "2023-06-22T09:56:24Z")

</div>

Hey, I didn’t get it how to solve my problem. Can you please elaborate it ?

---

<div class="post-metadata">

**Author:** ![rokenrock](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokenrock/32/1040844_2.png) [@rokenrock](https://forums.unrealengine.com/u/rokenrock)\
**Post date:** [June 22, 2023, 1:12pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/8 "2023-06-22T13:12:12Z")

</div>

If you’re spawning inside your trigger, you need to move either your player spawn or your load trigger such that the player isn’t spawning inside anymore.

In case you aren’t using a player spawn, this is where you can find them:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/8/e98e66e54b190369ac8eaa47e92540091e508f07.png)

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 22, 2023, 1:25pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/9 "2023-06-22T13:25:25Z")

</div>

Actually I’m not spawning the player inside the trigger. I have defined one collision box and when the player collides with that box it should go to the next level which I’ve defined in the Trigger Blueprint. But as you said it keeps switching between two levels in infinite loop. And in the next lvel I have placed this Player Start actor.

---

<div class="post-metadata">

**Author:** ![rokenrock](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokenrock/32/1040844_2.png) [@rokenrock](https://forums.unrealengine.com/u/rokenrock)\
**Post date:** [June 22, 2023, 1:27pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/10 "2023-06-22T13:27:07Z")

</div>

Can you replace the OpenLevel node with a print node, and give us a screenshot of your level layout (specifically the trigger and player start)?

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 22, 2023, 1:34pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/11 "2023-06-22T13:34:13Z")

</div>

Yeah sure. Here it is.

 ![Screenshot 2023-06-22 190148](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/0/a9074737dcf05988f48f0e7793d9ae72f69a2c41.jpeg)

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 22, 2023, 1:34pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/12 "2023-06-22T13:34:52Z")

</div>

![Screenshot 2023-06-22 190327](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/1/c617c021b5f6cea00df330b277411e3be3523fa3.jpeg)

---

<div class="post-metadata">

**Author:** ![rokenrock](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokenrock/32/1040844_2.png) [@rokenrock](https://forums.unrealengine.com/u/rokenrock)\
**Post date:** [June 22, 2023, 1:39pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/13 "2023-06-22T13:39:01Z")

</div>

That’s weird. I assume the second image is you not having done anything- just spawning there.

Try moving the trigger somewhere else- see if you’re teleporting to the trigger or location.

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 22, 2023, 1:40pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/14 "2023-06-22T13:40:44Z")

</div>

No, I have replaced the Open Level tag by print tag printing Hello which you can see in the top left corner in the map.

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 22, 2023, 1:48pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/15 "2023-06-22T13:48:15Z")

</div>

This is what happens when I use Open Level tag and try to switch from one level to another.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/3/c9342bdad87e07f3eeb7c5f1ba5880b916020e87.jpeg)

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [June 27, 2023, 12:06pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/16 "2023-06-27T12:06:14Z")

</div>

I have an Capsule Component and NavMeshVolume around the player. Can that be an problem of this issue ?

---

<div class="post-metadata">

**Author:** ![rokenrock](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rokenrock/32/1040844_2.png) [@rokenrock](https://forums.unrealengine.com/u/rokenrock)\
**Post date:** [June 27, 2023, 2:11pm UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/17 "2023-06-27T14:11:56Z")

</div>

Could you record a video and post it here? It’s hard to know exactly what’s happening in what order. Make sure to show everything that might be relevant- including gameplay and blueprints.

---

<div class="post-metadata">

**Author:** ![abhip03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhip03](https://forums.unrealengine.com/u/abhip03)\
**Post date:** [July 2, 2023, 9:25am UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/18 "2023-07-02T09:25:17Z")

</div>

Hey, thank you for your help but I was able to figure out the issue through youtube videos and google. And my issue is solved. Actually the issue was that I had one event called Event Destroyed which was starting the level again after player is destroyed(when the health of the player becomes less than zero). That’s why I wasn’t able to switch between two levels.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 1, 2023, 9:25am UTC](https://forums.unrealengine.com/t/switching-between-two-levels/1202257/19 "2023-08-01T09:25:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
