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?

in Engine by (92 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)
-------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.

by (175 points)
selected by
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.