aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/car_behaviour.gd
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-09 15:45:42 +0200
committerLibravatar perivesta <>2023-07-09 15:45:42 +0200
commit0c0674dc05d71ab156b7077f4415b78135d7c1cc (patch)
treef2cd3f6ced34539e0b6de4ad43aa7b492821e1b2 /Scripts/car_behaviour.gd
parent5b1a456768f0072e10577f52914898473385e72b (diff)
download2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.tar.gz
2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.tar.bz2
2023-0c0674dc05d71ab156b7077f4415b78135d7c1cc.zip
more sprites
Diffstat (limited to 'Scripts/car_behaviour.gd')
-rw-r--r--Scripts/car_behaviour.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/Scripts/car_behaviour.gd b/Scripts/car_behaviour.gd
index 8c22bf3..1a69b37 100644
--- a/Scripts/car_behaviour.gd
+++ b/Scripts/car_behaviour.gd
@@ -29,7 +29,10 @@ func _ready():
func _physics_process(delta):
if not driving:
+ $Sprite2D.hide()
return
+
+ $Sprite2D.show()
# Code for getting the next desired direction based on the environment
set_interest()