Hi everyone.
I am very new to godot and gdscript. Even game designing in general but i am finally taking the step forward and try to make my dream game come true :)
I am struggling with a very important aspect of my gameplay which will involve many time to be able to check in which tile the player is.
We speack about top down turn by turn tile movement on a grid map (civ style if you want).
So depending on the tile the player is, loots, monster encounter, and many things would be affected.
I have been looking everywere for a way in gdscript to simply return the id for the tile that currently occupy the space.
So i would have image something like Tilemap(cell).tileset.givemeyouridplease()
But as far as i understand, there is no simple function that does that.
So here i am... any way for me to do that ?
On the same idea. I have been looking for a way to give custom variables to my tiles that i could play with in the code.
I came to understand there is a way to attach a script to a tileset and do it like that. Is that a good way to go ?
Or maybe should i get the godot version with C# support and that could help (don't know much about c# either but i imagine its more flexible than gdsript)
Thanks a lot