# Perspecive-based character scaling in Paper2D

**URL:** <https://forums.unrealengine.com/t/perspecive-based-character-scaling-in-paper2d/452972>\
**Category:** Character & Animation\
**Tags:** perspective, unreal-engine, scale, question\
**Created:** [July 28, 2019, 2:40pm UTC](https://forums.unrealengine.com/t/perspecive-based-character-scaling-in-paper2d/452972 "2019-07-28T14:40:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sygiii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sygiii](https://forums.unrealengine.com/u/sygiii)\
**Post date:** [July 28, 2019, 2:40pm UTC](https://forums.unrealengine.com/t/perspecive-based-character-scaling-in-paper2d/452972/1 "2019-07-28T14:40:06Z")

</div>

I would like to do an old-style point-and-click adventure game, where for each level I prepare a 2D image of the background, which is drawn to take perspective into account (see, eg. [https://i1.wp.com/chiptuneswin.com/blog/wp-content/uploads/2016/09/perspective.jpg](https://i1.wp.com/chiptuneswin.com/blog/wp-content/uploads/2016/09/perspective.jpg)). Then, I would like to select a part of the image where the character will be able to move (define a navmesh) and make the sprite scale the further it is from the camera.

I understand I would be able to achieve that by coding the (x,y) → scale mapping, but with the perspective going a little bit side-ways this becomes complicated (and needs to be done on a level-by-level basis).

I saw Unity achieves this effect with a [SortingMap](https://adventurecreator.org/tutorials/using-sorting-map-fake-depth), where one defines what scale should a character have where on the picture and the engine interpolates between the points. Is it possible to achieve the similar effect in Paper2D?

Similar (simpler) question: [https://answers.unrealengine.com/questions/150037/paper-2d-character-movement-question.html](https://answers.unrealengine.com/questions/150037/paper-2d-character-movement-question.html)
