How do I Make a scrollable zoomable map

0 favourites
  • 5 posts
From the Asset Store
you can add, remove and reorder list items and many more
  • Hi, This is my first post but I have the feeling that this is an awsome comunity so here we go:

    I'm trying to make a map, It should be scrollable by sweeping or in the case of the mouse by going to the edges.

    It should also be zoomable, should stay in its boundaries, and should have hotspots attached to it (in my approach they should be attached because I'm moving and scaling the object/layer but if there's a better way by all means enlighten me)

    My questions are if not hard, many:

    -Is there an easy way to approach this? the way I've been doing it is really cumbersome.

    -should I zoom in and out using the layer scale? the use of the layout zooms my UI also.

    -if the map image is big, should I use a tile Map? what are the advantages?

    Thanks In advance.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Animatect

    Here is a scroll-able, zoom-able map example I did last year for someone asking similar questions. I might do some things different now, but this should give you lots of ideas to work with.

    you can use layout zoom if you want - just disable zooming for the UI layer by setting its Scale rate to zero.

    Tile maps are a very good idea for big maps - if you can build the map from a reusable tile set.

    capx: http://www.rieperts.com/games/forum/Starcraft_map.capx

  • This is just what I needed, thank you so much!

    Just by curiosity, what would you do diferent now?, it's just that it seems perfect for me

  • Animatect

    I didn't look at my code very closely, I just know that I have learned a lot over the last year. The zooming in and out doesn't feel as smooth as I remember, so I think something there could be improved. Also, the invert check box doesn't actually do anything, and I seem to remember making that change which direction the screen scrolls, but I couldn't find any other version of the capx...

    anyway, good luck with your game!

  • Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)