Failed Tile Loading [SOLVED]

Hi,

Sorry if the post is a bit sloppy in quality. I’ve just started using Defold to create apps / games and I’ve managed to get a Tilemap setup correctly. However when utilizing it in the App only specific tiles are loading and the rest appear black. If any help could be given that’d be fantastic.

I’m still using the default desktop app script, attaching it anyway for use

function init(self)
	msg.post(".", "acquire_input_focus")
	msg.post("@render:", "use_fixed_fit_projection", { near = -1, far = 1 })

end

function on_input(self, action_id, action)
	if action_id == hash("touch") and action.pressed then
		print("Touch!")
	end
end



Thank you in advance for any help!

Did you change the z position of the tile layers? Make sure they are in -1 to 1 range. Otherwise please zip the project and upload here so we can take a look at the issue.

1 Like

That seems to have fixed it, I accidentally added an extra 0 to the Z of a layer. Thanks for the help!

2 Likes