How do I load JSON data to a tilemap sucessfully.

Get help using Construct 2

Post » Sat Mar 15, 2014 4:30 pm

Hi there.
I think I am missing something regarding this.
Has anyone got an example of how to load the tile state of a tilemap using a JSON string.

When I try, the tilemap does not update, even when I load a string that has been previously created from the same map.

I have tried the following:
The layout starts with tiles already in the tile map.
I save the JSON string from the tile map into a text object.
The tilemap is cleared.
On a key press, set the tile state from the string in the text object.

Nothing happens.
B
6
Posts: 23
Reputation: 421

Post » Sat Mar 15, 2014 10:42 pm

Ooops - solved it.
It was my error: I was using the 'Set from JSON' rather than 'Load' action.
B
6
Posts: 23
Reputation: 421


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests