What would be the best way to render a very large number of (pixel) nodes and allow the user to interact with them?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Austin

For my game, I need to render what is basically some pixel art where the user needs to be able to click on and interact with each pixel. The pixels will not move but I would like to have them as something other than a static image in order to apply effects to each one. Currently, my approach is to simply have a node for each one. Is there a better way to do this for something around the size of 500 x 500 pixels or larger?

:bust_in_silhouette: Reply From: Calinou

You can use the Image class’ manipulation functions for this, like set_pixel(). See how Pixelorama does it, for instance.

Thank you for that example but do you know of any alternatives to an image based solution? I would like the flexibility that nodes provide.

Austin | 2020-04-23 23:40