func Custom_function:
print(Saplings.get_cellv(PlayerPosition))
I have a tilemap saved as Singleton Called Saplings with 3 tiles in it and i want to print The Cellv of the tile my player is on. but for some reason all it prints out is -1. Please Explain
Some might say its the variable PlayerPosition thats not correct but i use that exact same variable at other points in the same script. only with a different tilemap. The tile map that this script is attached to.
And the Variable is not located in a function only set in the function process wich is the other place i use it. And last but not least the Custom Function is also a process since im calling via a state machine in the process function. wich is really a Physics process
I think thats all the info i need to give