diff options
author | tpart <tpart120@proton.me> | 2025-09-12 21:49:45 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2025-09-12 21:50:10 +0200 |
commit | e77cb013359509bab6ab51f916d30746182cff15 (patch) | |
tree | 5939805f3f45bbf3bbf44002b1f115bfee40e396 /client | |
parent | 5fbfa29e38c7936917bee50050d754cb7654d5ad (diff) | |
download | hurrycurry-e77cb013359509bab6ab51f916d30746182cff15.tar hurrycurry-e77cb013359509bab6ab51f916d30746182cff15.tar.bz2 hurrycurry-e77cb013359509bab6ab51f916d30746182cff15.tar.zst |
Instantly move cursor when tile is first focused to prevent "flickering" effect
Diffstat (limited to 'client')
-rw-r--r-- | client/player/controllable_player.gd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd index e23bc675..3bcfacff 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -205,7 +205,9 @@ func interact(): var tile = game.map.get_tile_instance(target_tile) if tile != null: - marker.visible = true + if not marker.visible: + marker.visible = true + marker.position = target_visual # clear last interaction if target_tile has moved since if last_interaction != null and not last_interaction == target_tile: |