How do I spawn predefined level blocks?

0 favourites
  • 5 posts
From the Asset Store
LevelsManager is a Construct 2 & 3 plugin to manage your worlds and levels easily
  • I am currently building an endless runner that should spawn predefined level blocks.

    Current situation:

    I have a layout which contains all the level blocks as separate tilemap objects, so that I can call them separately.

    There are several problems with this solution:

    1.) For every different behaviour (collision, solid etc) I need to create a new tilemap object and lay it over each other. This results in a huge amount of objects which are difficult to manage

    2.) The level blocks need different graphics depending on various factors. Tilemaps cannot change graphics on the fly. Again, I would need to create a new set of tilemaps for every level theme which is not doable.

    I am pretty sure that there is a well known way to handle situations like this. Any ideas?

  • You should make a map editor , and pre make all of your pieces. Then you can save them as JSON format, so you can quickly re-draw the patterns.

  • Hi jojoe,

    thanks for your reply.

    Would that solve my problems? Can I specify a tilemap behaviour and .png inside a Json?

    Do you have any links where tilemap+Json workflow is explained? Didn't find anything helpful about this topic.

  • You could load data from json into an array and set the tiles of the tilemap based on the array-data?

    You don't need to specify the tilemap or the png inside the json, for it would only contain the number of each tile that should be placed.

    The tilemap object itself would already be there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you guys,

    however, can't figure this out since there is no info about it to find at all.

    Guess I am going to workaround the problems.

    thanks anyway

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