How can I draw a rectangle on 'top' of my tilemap without creating another node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mauricio Vera
:warning: Old Version Published before Godot 3 was released.

I am trying to draw a Rect2 in the _draw function inside the script of a tilemap, but it is drawn behind the tiles, if I delete some tiles I can see the rectangle.
How can I make it move to the front without creating another node?

Is there any reason why you don’t want to use another node for drawing? This seems to be easiest and most elegant solution. Also I’m not sure how draw override works for anything but Control or Node2D.

Daniel Lewan | 2016-07-12 20:41