# Entering door on input (paper2d)

**URL:** <https://forums.unrealengine.com/t/entering-door-on-input-paper2d/342296>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, question, Blueprint\
**Created:** [December 23, 2015, 6:39pm UTC](https://forums.unrealengine.com/t/entering-door-on-input-paper2d/342296 "2015-12-23T18:39:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_519ef7ae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_519ef7ae](https://forums.unrealengine.com/u/anonymous_user_519ef7ae)\
**Post date:** [December 23, 2015, 6:39pm UTC](https://forums.unrealengine.com/t/entering-door-on-input-paper2d/342296/1 "2015-12-23T18:39:22Z")

</div>

Hi, I’m having trouble figuring out how I enter a door which opens a new map/room in a paper2d environment by pressing a key. I can enter the doorway if I overlap, but I only want to enter the doorway if I press a key while standing in front of it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [December 23, 2015, 8:54pm UTC](https://forums.unrealengine.com/t/entering-door-on-input-paper2d/342296/2 "2015-12-23T20:54:09Z")

</div>

Hello JumpinDownaHole,

From the way you describe it, you don’t need the door to open, but you want it to move you to another level. If that is the case, you should be able to set a trigger box and a boolean inside of the character’s BP to do this for you.

The first step is to place the trigger box in front of the doorway and then make it into a blueprint. After that, you can use an “On Begin Overlap” event in the Event Graph to do a “Get Overlapping Actors”, cast to your character’s BP class, and then set the boolean that you created to true. After that, set up the input that you wish to use to move to the next level to check to see if that boolean is true or false. If it is true, have it move to the next level and set the boolean back to false. You’ll also want to set up an OnEndOverlap for the trigger box to set that boolean back to false as well.

Please let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_519ef7ae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_519ef7ae](https://forums.unrealengine.com/u/anonymous_user_519ef7ae)\
**Post date:** [December 23, 2015, 11:29pm UTC](https://forums.unrealengine.com/t/entering-door-on-input-paper2d/342296/3 "2015-12-23T23:29:52Z")

</div>

Thanks , that works perfectly. I didn’t know about trigger boxes at all…
