# 2D Platformer Bounding Box for Followcam

**URL:** <https://forums.unrealengine.com/t/2d-platformer-bounding-box-for-followcam/359255>\
**Category:** Cinematics & Media\
**Tags:** platformer, bounding-box, unreal-engine, Blueprint, question\
**Created:** [June 1, 2016, 12:33pm UTC](https://forums.unrealengine.com/t/2d-platformer-bounding-box-for-followcam/359255 "2016-06-01T12:33:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_df77af65](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df77af65](https://forums.unrealengine.com/u/anonymous_user_df77af65)\
**Post date:** [June 1, 2016, 12:33pm UTC](https://forums.unrealengine.com/t/2d-platformer-bounding-box-for-followcam/359255/1 "2016-06-01T12:33:39Z")

</div>

Hey guys,

I just got into Blueprints and am now working with the **paper character blueprint class** and wanted to blueprint a **followcam**.  
I came across this unity tutorial which does exactly what I want by creating a bounding box around the character that moves when you touch the bounds:

\*now my first question would be\*: how would I approach the scripting (like I have no clue at all other than there is a camera blocking volume)?

_and second:_  
is it possible to build the whole thing inside my paper character BP? or should I create a separate BP

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_df77af65](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df77af65](https://forums.unrealengine.com/u/anonymous_user_df77af65)\
**Post date:** [June 1, 2016, 2:42pm UTC](https://forums.unrealengine.com/t/2d-platformer-bounding-box-for-followcam/359255/2 "2016-06-01T14:42:46Z")

</div>

so my first thought would be:

- create a box collider component
- check line trace for the border
- make the collider move with hit

maybe something like that?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_df77af65](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df77af65](https://forums.unrealengine.com/u/anonymous_user_df77af65)\
**Post date:** [June 9, 2016, 11:05am UTC](https://forums.unrealengine.com/t/2d-platformer-bounding-box-for-followcam/359255/3 "2016-06-09T11:05:48Z")

</div>

So I kind of have a setup but currently the box if moved is clunky and only works correct to the left but jumps when i move to the right.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_df77af65](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_df77af65](https://forums.unrealengine.com/u/anonymous_user_df77af65)\
**Post date:** [June 10, 2016, 1:25pm UTC](https://forums.unrealengine.com/t/2d-platformer-bounding-box-for-followcam/359255/4 "2016-06-10T13:25:10Z")

</div>

ok so I don’t know if anyone is even interested in this topic. I’m still gonna keep updating it because I think there will be a lot more people wanting to make 2D stuff in unreal:

so this is my BP so far (need to fix the x-axis offset and a translate for the top and bottom of the box):

> **[2DCameraBP posted by anonymous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/r5gxzjqd/)**
>
> No description provided
