Error with tilemap object and JSON?

Discussion and feedback on Construct 2

Post » Sat Jun 24, 2017 9:14 pm

Hi.

https://www.dropbox.com/s/rdzewts23g750o8/testTilemap.capx?dl=0

Image

In this example:
1 - The tileset of the tilemap object is changed.
2 - The state of the tilemap object is saved in JSON
3 - The tileset of the tilemap object is changed again
4 - Retrieve tilemap object status with JSON
5 - The tileset that now has the tilemap object does not correspond to the one that was in the moment in which its state was saved.

To take the test:

1 - Press the space bar to change the tileet of the tilemap object
2 - Press the "S" key to save the state of the tilemap object in JSON
3 - Press the "M" key to change the tileset of the tilemap again, this is so that when the status is restored in the next step, the correct tileset that the object was in the moment of saving its state is visible.
4 - Press "L" to load the state of the tilemap object in JSON format

It is observed that the tileset of the tilemap object has not changed and the one that it has does not correspond with the one that was in the moment of saving its state in JSON

Summary
The tilemap object does not correctly store its state in JSON.
The tilemap object does not retrieve its JSON state correctly.
B
29
S
12
G
20
Posts: 756
Reputation: 13,855

Post » Sat Jun 24, 2017 9:50 pm

An objects Json string never includes the graphics.
B
33
S
18
G
28
Posts: 2,455
Reputation: 20,874

Post » Sun Jun 25, 2017 7:52 am

I know that JSON does not save graphics, that answer does not work.
B
29
S
12
G
20
Posts: 756
Reputation: 13,855


Return to Construct 2 General

Who is online

Users browsing this forum: Brendan2007 and 9 guests