Load a level from text file – No Plugins

Here’s an example of loading a level stored as a text file into an array with no external plugins.  Created for a user on the forums the example is a bit “hacky” but I created it to show that this sort of thing can be done without the need of external plugins.  The example also shows saving the array to JSON and then in layout 2 loading the JSON into a different array.

The level is stored as below in the text file:

0000000000
0124122320
0155482210
0565322660
0124458650
0565956560
0854856220
0545269550
0154852320
0000000000

DOWNLOAD

Quick note that this example only works with single digits to represent level data.

 

Lack of updates :(

Sorry for the recent lack of updates & examples.

I’ve shifted my focus slightly and have started work on my first Construct 2 E-Book.  The book is going to cover the scary topic of “Arrays”.  It’s still in the early stages but I’m getting the basics of the book together and have made a good start of writing one of the step-by-step tutorials.

The book (if completed) is more than likely going to be self published and be either free or dirt cheap (£2-5) considering the amount of content I hope to include.