# Zoom, pan around 2D SpriteKkt Map / Tiles

**URL:** <https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074>\
**Category:** Sprite Kit\
**Created:** [February 25, 2019, 4:16pm UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074 "2019-02-25T16:16:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![annemarie1185](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/annemarie1185/32/81494_2.png) [@annemarie1185](https://forums.kodeco.com/u/annemarie1185)\
**Post date:** [February 25, 2019, 4:16pm UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074/1 "2019-02-25T16:16:54Z")

</div>

I’m at the point of designing my game and I’m struggling with how to deal with a variable game map, made up from SpriteKit tiles where the user can zoom and pan around at will.

Is this whole grid of tiles inside a uiscrollview or is there another better (easier) way to deal with this problem?

Thanks

---

<div class="post-metadata">

**Author:** ![annemarie1185](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/annemarie1185/32/81494_2.png) [@annemarie1185](https://forums.kodeco.com/u/annemarie1185)\
**Post date:** [March 13, 2019, 7:01am UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074/2 "2019-03-13T07:01:54Z")

</div>

Really? No help is almost 3 weeks?

☹

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 1, 2019, 10:09pm UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074/3 "2019-04-01T22:09:54Z")

</div>

@annemarie1185 Do you still have issues with this?

---

<div class="post-metadata">

**Author:** ![annemarie1185](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/annemarie1185/32/81494_2.png) [@annemarie1185](https://forums.kodeco.com/u/annemarie1185)\
**Post date:** [April 2, 2019, 10:52am UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074/4 "2019-04-02T10:52:29Z")

</div>

Yes, I do. I haven’t got my code working to the point where I can implement a plain old scroll view and start putting things in it to test, so I was asking before I went down a dead end, on how best to do this… and as you see, no one offered any help. ☹

---

<div class="post-metadata">

**Author:** ![jecht83](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jecht83/32/111154_2.png) [@jecht83](https://forums.kodeco.com/u/jecht83)\
**Post date:** [July 2, 2019, 10:11pm UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074/5 "2019-07-02T22:11:50Z")

</div>

Hi @annemarie1185, UIScrollView is not going to work for you instead you should use SpriteKit’s camera

With the help of touch events you should be able to move the camera through your map and by scaling your map you’ll be able to mimic zoom

Hope it helps

---

<div class="post-metadata">

**Author:** ![annemarie1185](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/annemarie1185/32/81494_2.png) [@annemarie1185](https://forums.kodeco.com/u/annemarie1185)\
**Post date:** [July 7, 2019, 12:39am UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074/6 "2019-07-07T00:39:33Z")

</div>

THANK YOU!

Finally an answer! I’ll look at that solution.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [August 11, 2019, 8:16am UTC](https://forums.kodeco.com/t/zoom-pan-around-2d-spritekkt-map-tiles/63074/7 "2019-08-11T08:16:54Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
