I make a map for the RTS game by canvas. In the game there are forests. Of course I can determine in the code where the forest is by tile number. The problem is that forests have different positions on different sprites and occupy different diapazons. Can I create a layer with only a forest? Is it logical?
While it is hard to say without knowing more about your specific case, I would say it’s generally not logical to use a special layer for “forest”. Also, I would advice against identifying the forest by tile number.
You could identify your forest by tile properties, and you could also use tile properties to specify additional information, like the position or area of the forest within the sprite, if I understood correctly that this is what you need.
If I’m not helping, please try to give a bit more detail about your use-case and share a screenshot if possible.