0 votes

How do I draw something over a tilemap? I have a script that draws a circle that is constantly updated every tick. I'm looking to have it draw on top of the tileset but right now it always goes underneath. Any tips?

asked Sep 9, 2019 in Engine by xofox (90 points)

1 Answer

0 votes
Best answer

NOTE: This if your "Circle" is a saved scene.

Its hard to say what the tree would look like, but you could add a node below the Tilemap
Basiclly heres what the scene tree would look like

----Root Node (Level)
-------TileMap
-------Container (Can be a basic node)

In the Container you could add a script where it will spawn/instance that circle as a child of the container node. It is expected that you'll emit a signal to that Container which will Instance you Prefered Scene.

answered Sep 10, 2019 by EnderCreeper1st (169 points)
selected Oct 2, 2019 by xofox
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.