I’ve been following this tutorial on how to make a turret defence game. I understand most of it but I’m having a lot of trouble using Tiled’s custom properties.
I have a tile with the property “buildable” and the value “True”. I want to check the value is true before I can add a tower using the method canBuildOnTilePosition() as shown in the tutorial.
Can anyone give a code snippet or explain how to get the property, and the value?
Nice one, didn’t realise the test classes had that much extras. I’m trying to use the tile layer to get the custom properties of the tile rather than see if there’s an object there. I might try adding objects over the turret positions and test for them to add a tower.