How do I open world?

Not favoritedFavorited Favorited 0 favourites
  • 2 posts
From the Asset Store
10 Orchestral Soundtracks / ~2 mins each / 11 audio clips in total
  • Hello everyone! I'm trying to create an open world and use chunks, but I'm failing.

    Maybe someone has a small template or example?

    The idea is that I have a pre-made layout with everything set up (tilemap, sprites, and so on), and when I first launch the game, I "bake" all the information into a JSON file and load it into the game. All, when, conditional player enters the game he does not have to wait for "baking", he moves around the world and only dynamic sprites are written in JSON and deleted\loaded when you enter\leave the chunk. I hope something is clear from my message :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We do this in Moonstone Island.

    Our world is made up of individual islands (tilemaps) arranged on a 10x10 grid, so the JSON looks like this:

    {"island1_1":{objects}, "island1_2":{objects}, "island1_3":{objects}, ...}

    Based on the character's location in the world, we create the corresponding tilemap or multiple tilemaps and all their objects.

    1. Look at a small zone around the player (about 1000px in each direction). If an island in that zone doesn't exist yet, it gets created together with its objects.

    2. Check for islands that are far away from the player (more than 2400px). Those distant islands, and all objects on them, get destroyed.

    This way, only a few islands (usually 1-2) are loaded at any given time, depending on where the player is.

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