Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | xofox |
This is my code:
if event.is_action_pressed("Ctrl"):
print("Control pressed")
map.set_cellv(position,1)
It’s held in a much larger area of code of course and map is set to get the tilemap node. Whenever I trigger the event however nothing happens. I can see that it is printing that the event was triggered but it doesn’t set the cell to the tile in the 1 position. What should I change?