Hello everyone, i’ve come here with a question very different from any i’ve made before, and that’s bc this is for a little side-project and not the big project i normally work on.
A little context: There’s a tile map, that contains an advertisement billboard, the billboard says something like “Wellcome to Caneda” with each letter being a tile on the tile map. Then the player has on the lowermost part of the screen a “toolbar” containing tiles with the alphabet. To complete the level the player needs to click a character on the toolbar, in this case “a” and then a blueprint script loads “a” on “selected_from_toolbar” variable, then the player gotta click the typo on the billboard to replace, in this case, the “e” in “Caneda” so it becomes “Canada”.
The question is, how can i with the use of blueprint scripting, get the “id” of a clicked tile (whether is the a,b,c,d on the tileset, etc) and it’s “x-y possition on the tilemap” to store them into a variable to compare later on, and also have the “e” tile clicked, being replace with the “a” tile stored in the “selected_from_toolbar” variable.
I thought of using an array of vector variables, each one containing the x-y possition of a tile on the tile map and use that for referencing everything but i am also not sure how o make that either.
How do you guys recomend that i board this problem?