Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Superkrypet |
extends TileMap
var map_position
func _physics_process(delta):
map_position = world_to_map(ItemsManager.player_position)
print(map_position)
This script is quite simpel. but its only a small part of it. The full script is not important. the problem is that its set as a autoload. wich i need for it to work. but then what i think happens is that world to map
becomes confused since its on aoutoload and it prints out two map positions. one that behaves like i want it too and one that behaves like a tilemap with default settings. is there a way to make the one with default settings, go away