I posted this in How Do I, yet they told me to post it in scripting. I think i'm missing a import function? Because asking the TileMap to use function PositionToTileX is giving me a function not found: The tempTileMap is filled... I can use other functions such as GetTileAt()... Anyway the original post:
So everywhere I read that you can use PositionToTileX function... yet this function is not accessible in my code... it says:
Error: tempTileMap.PositionToTileX is not found
tempPlayer is found, tempTileMap is found, if I use static numbers on the getTileAt it works...
var tempPlayer = runtime.objects.Player.getFirstInstance();
var tempTileMap = runtime.objects.TilemapLevel.getFirstInstance();
var tempTileId = tempTileMap.getTileAt(tempTileMap.PositionToTileX(tempPlayer.x), tempTileMap.PositionToTileY(tempPlayer.y));
So where do I get PositionToTileX? I'm using Construct 3 since yesterday :)