Looking for city/empire-like building game tutorial for map?

0 favourites
  • 2 posts
From the Asset Store
Empire Game has everything you need to create immersive, historical-turn-based games!
  • Hey Construct world!

    Trying to put a little game together that has a 10x15 buildable grid (map) where players can place different blocks (2x2, 3x3) within the grid area. Does anyone know of a tutorial on CS on how to put that portion together? Not looking for a tutorial on the entire game model.

    Thanks all!

    *Updated* - I found this template to purchase (https://www.construct.net/en/game-assets/game-templates/city-builder-98) which is a full package but I thought there was some guide to show you the basics of a large area that could have smaller blocks placed within that area...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The very basics would be to first decide what data format you're using to store the state of your tiles. Either an array or tilemap would work well.

    When placing a building, check all relevant tiles/cells relative to the cursor/placement position to see if they are valid. If not, then do nothing or display an error. If all valid, then place the building and update the tile/cell data it now occupies.

    If using arrays, recording the uid of the building object is one way to keep track of what is currently occupying any cell. If using tilemap, the tile number itself could naturally identify the building.

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