1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 05:25:57 +00:00

Bug Fix: Rotating ships at the original position would move the other ships left for some reason

- Issue fixed
- Now the ships won't move when rotated in the original position
- might make it so that the ships don't rotate in the original position in general
This commit is contained in:
tommy-l-ngo 2021-11-01 15:22:03 -05:00
parent 254a9d86d4
commit 223944523d

View File

@ -107,6 +107,7 @@ func _input(event):
rotate(PI/2) rotate(PI/2)
vertical = true vertical = true
if(position.x > 17.4 and position.x < 337.5) and (position.y > 20.2 and position.y < 335.5):
# 2-Ship # 2-Ship
if (get_parent().get_node("2Ship").rotation_degrees == 0): if (get_parent().get_node("2Ship").rotation_degrees == 0):
if (get_parent().get_node("2Ship").position.y > 308): if (get_parent().get_node("2Ship").position.y > 308):