Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
isometric tilemap and pinch to zoom — Gideros Forum

isometric tilemap and pinch to zoom

grotlygrotly Member
edited November 2015 in General questions
Anybody managed to make an isometric tilemap behave correctly when applying pinch to zoom? For example when using Bowerhaus pinch library (see below the link)? It works correctly with a bitmap or a normal tilemap, but the isometric one scales in a very weird way. Might be a problem with the Mesh class perhaps?

https://github.com/bowerhaus/BhPinch

https://github.com/gideros/Isometric-Tilemap

Comments

  • Thanks pie, I tried with that and still doesn't scale properly. Can you give an example how you use it with an isometric tilemap? With a normal tilemap it works fine.
  • piepie Member
    Accepted Answer
    If I recall correctly the problem with isometric tilemap is that it covers an area between positive and negative coordinates, and this mess up with Kinetic Zoom Camera (maybe with bhDrag too).

    I didn't remember that I tweaked it to fit my needs: however, this is not as good as it should be (I'd like to improve it but it takes a lot of time with my poor math skills). Maybe it would be easier to draw the isometric tilemap with some offset, but it is still out of my league. If you can do it, please share :) .

    Here's an example with tilemap and camera pinch to zoom:
    zoom keeps the anchor on the center of the screen instead of 0,0 and support mouse wheel! :)
    zip
    zip
    Isometric-Tilemap-camera.zip
    23K
  • Thanks, I'll keep investigating. If someone else has ideas, please share.
Sign In or Register to comment.