You seem to mix together the logic and the graphics. Normally these are separate concerns.
In the simpliest case, you could just have a script implementing logic attached to a sprite node. But in a real game an object is built of multiple nodes, some of which do behavior and others do graphics.
Tilemap is a part that does graphics, for a game where the objects are arranged in a grid. It is very efficient at the thing it is made for, which makes it an easy choice. But it does nothing to track or process the health or energy. The health and energy you program elsewhere the way you need them.
You are free of course to make a map of hundreds by hundreds, or thousands by thousands cells, out of individual nodes, but I imagine that would be extremely inefficient, and may end up being too slow depending on what hardware you intend it to run on.