After making my TMX based map in Tiled, I would like to programatically change certain properties of the tiles as my game progresses.
This is the code I've tried but it doesn't work. But I include it here to demonstrate the logic of what I'm trying to achieve...
NSDictionary *currentProperties = [_tileMap propertiesForGID:tileToMarkFalling];
[currentProperties[@"Falling"] setString:@"True"];
[_tileMap propertiesForGID:tileToMarkFalling] = currentProperties;
The error thrown here is "Expression is not assignable"
.
How can I set these properties programatically, thanks.