I have an image of territories, and I want to show a text when the user put the cursor above each territory, but all territories make part of the same image. How can I make something like spliting the sprite?
If you want to use a single image for your map then you will still need to either make some separate "overlay" images to detect where the mouse is.... or make some events to define the areas where you want your mouse detection to be.
Honestly, it's probably easier to just cut the map up into individual territories and use them to detect mouse position.
Develop games in your browser. Powerful, performant & highly capable.
I thought there was a way to make divs in the sprite. So I will make overlay images. Thank you for the attention.