# Simple minimap using a texture?

**URL:** <https://forums.unrealengine.com/t/simple-minimap-using-a-texture/406071>\
**Category:** Asset Creation\
**Tags:** minimap, unreal-engine, question, Blueprint\
**Created:** [October 3, 2017, 2:37pm UTC](https://forums.unrealengine.com/t/simple-minimap-using-a-texture/406071 "2017-10-03T14:37:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bushey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bushey](https://forums.unrealengine.com/u/Bushey)\
**Post date:** [October 3, 2017, 2:37pm UTC](https://forums.unrealengine.com/t/simple-minimap-using-a-texture/406071/1 "2017-10-03T14:37:35Z")

</div>

Hi folks,  
alt text

![215609-minimap-003.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/e/44ed8438ece8a4c218a8ca43162a26d8603dc5eb.jpeg)

I’m trying to make a simple minimap that changes postion of a marker on a texture map when I press a key. I’d like to bind the movement to one of four keys - up, down, left and right and I need it to go off of one side of the map and wrap around. See below.

I don’t want to do a realtime top down render of the scene and my character isn’t actually moving physically around the scene. I had started to use Blueprint to shift my marker using the uv’s of the texture map of the marker on key press but I couldn’t get it to add the position of the U + V together.

Any ideas on how I sould take this would be appreciated.

Cheers,

P

---

<div class="post-metadata">

**Author:** ![Bushey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bushey](https://forums.unrealengine.com/u/Bushey)\
**Post date:** [October 3, 2017, 2:39pm UTC](https://forums.unrealengine.com/t/simple-minimap-using-a-texture/406071/2 "2017-10-03T14:39:28Z")

</div>

Re asking as I seem to have added a big map on top of my question. 🙂

Hi folks,

I’m trying to make a simple minimap that changes postion of a marker on a texture map when I press a key. I’d like to bind the movement to one of four keys - up, down, left and right and I need it to go off of one side of the map and wrap around. See below.

I don’t want to do a realtime top down render of the scene and my character isn’t actually moving physically around the scene. I had started to use Blueprint to shift my marker using the uv’s of the texture map of the marker on key press but I couldn’t get it to add the position of the U + V together.

Any ideas on how I should take this would be appreciated.

Cheers,

P

---

<div class="post-metadata">

**Author:** ![Razivoid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Razivoid](https://forums.unrealengine.com/u/Razivoid)\
**Post date:** [January 22, 2019, 12:12am UTC](https://forums.unrealengine.com/t/simple-minimap-using-a-texture/406071/3 "2019-01-22T00:12:54Z")

</div>

This is a different approach that purely looks at UMG and the active camera transform.

1. Setup your scene and define the top-left and bottom-right extents of your map (as per your texture). You will input these coordinates in variables later.

 ![266106-tut-scene-layout.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/1/fb1d3849217f2c29fb2d4925466d34c3190da188.png)

1. Have your map texture ready and create a location icon. I’ve attached examples:

 ![266107-t-map-plan1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/2/162ee0411027d4689df03b978177e9b892981963.png)

![266108-t-map-location.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/6/ae6480b7e2da3103b0b0cf4898f4ae53278cccf9.png)

1. Create a new Widget blueprint with the following layout. It’s important to check “Size to Content” on the Overlay. Make your Overlay a variable.

 ![266109-tut-widget-layout.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/a/f8af2b2601e70561d54ced1c6fba5cdc875d40ad.png)

1. Go into your Widget graph and apply the following. I’ve put it on EventTick but you can update the location on a custom event/dispatcher.

New Vector var: ‘TopLeftWorldCoordinate’ x -600, y -600, z 0.

New Vector var: ‘BottomRightWorldCoordinate’ x -200, y -200, z 0.

 ![266110-tut-widget-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/d/4bde421fbf6add4f65e81c84641f78d4913cef54.png)

Note the location image size should be 32x32 for the offset of 16.

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [August 10, 2021, 11:25pm UTC](https://forums.unrealengine.com/t/simple-minimap-using-a-texture/406071/4 "2021-08-10T23:25:09Z")

</div>

No one ever like your post, despite the insane explanation.

Thanks bro.
