Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | expaand |
I am looking to create a simulation, which in large part depends on fluids. These fluids will have various characteristics, go through pipes via gravity, go through pipes via pumps, bubble in vessels, etc.
I have considered various ways to do this. So far, the best approach seems to be using cellular automata. I have seen references to doing this using a TileMap (see description), but being a newbie, am slightly confused. I see no way to have the tiles be a Node2d with a Sprite, as this write up suggests. It seems that tiles in a tilemap must refer to a pre-defined tile in a TileSet, rather than an arbitrary node. Is this true? Is there a way around this? Can I create tiles as an arbitrary Node2d scene (with a Sprite), which can be altered at run-time? Any suggestions to best do this?
Thank you!