1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 08:04:23 +00:00

Don't make sprites implode while being dragged

This commit is contained in:
Steffo 2024-04-15 21:27:23 +02:00
parent 4d21559024
commit 8ed5cccabb
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -9,5 +9,5 @@ class_name SpriteLeftRight
func handle_move(movement: Vector2): func handle_move(movement: Vector2):
if movement.x > 0: if movement.x > 0:
texture = right_texture texture = right_texture
else: elif movement.x < 0:
texture = left_texture texture = left_texture