You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you'll need to do is query a tile from its parent layer and set a new texture:
if let tile = tileLayer.tileAt(1,12){// create a new textureletnewTexture=SKTexture(imageNamed:"myTexture")// set texture filtering
newTexture.filteringMode =.nearest
// update texture & size
tile.texture = newTexture
tile.size = newTexture.size()}
Hope that helps, please let me know if you have any more questions.
Perfect!!! Thank you so much!! Your framework is wonderful!!
I'm creating a game with it, and if it goes well at App Store, I will make you a donation as a thankful for making this possible!!
Thanks!!! God bless you!!
When I change the texture with this commands, sometimes the new texture seems "behind" the tile above.
Example: if I change tile(2,2), sometimes its texture's zPos is lower then tile(1,1), and textures like buildings will apear behind texture of tile (1,1).
Hi, I'm trying to change a image of a tile, but it does not change.
I don't know if I'm doing the right way.
Can someone please help me?
The text was updated successfully, but these errors were encountered: