Hi. I’m new to Defold and mostly new to game programming, but not new to programming in general. Ran into a problem and I’m not sure the best way to solve it.
I’m making a game that’s a modified version of roulette with new rules to spice things up. I’ve constructed a tilemap for the roulette board and it’s laid out in such a way that each tile is one place on the board where the player can place some chips. The idea is that the player simply clicks to place a chip down on a particular number.
The problem is that I can only refer to the tiles by their x/y coordinates on the board, which is just a raw number. I don’t see a good way of referring to them by a more unique name like street1 or single10. So, as it currently exists, I’d have to refer to each tile by raw numbers (e. g. tile number ‘50’). That just doesn’t seem like the right way to do this. The hope was to avoid making dozens individual game objects for each of the potential bets a player can place and carefully squishing them into the board. It seemed much easier to rely on a tilemap to lay things out, especially since the board doesn’t change during gameplay. But, it’s not clear to me how to do that.
Any help is appreciated.