summaryrefslogtreecommitdiffstats
path: root/SmoothRotation.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-07-23 13:39:49 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-07-23 13:39:49 -0400
commit970476a745e00ff3490387645f77abc5558410c6 (patch)
tree4304c40c0e6ed7ca8ad8660c8addcb6224b613a0 /SmoothRotation.gd
parent0823c295a3b03d98be356b239a3f74f05795d9c9 (diff)
downloadchicken-chaser-gd-970476a745e00ff3490387645f77abc5558410c6.tar.gz
chicken-chaser-gd-970476a745e00ff3490387645f77abc5558410c6.zip
Ignore unused returns
Diffstat (limited to 'SmoothRotation.gd')
-rw-r--r--SmoothRotation.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/SmoothRotation.gd b/SmoothRotation.gd
index f6df8c7..91d1f70 100644
--- a/SmoothRotation.gd
+++ b/SmoothRotation.gd
@@ -2,6 +2,6 @@ extends Tween
func rotate_y(ang, speed):
var parent = get_parent()
- remove_all()
- interpolate_property(parent, "rotation:y", parent.rotation.y, parent.rotation.y+ang,abs(ang/speed),Tween.TRANS_EXPO,Tween.EASE_OUT)
- start()
+ var _ret = remove_all()
+ _ret = interpolate_property(parent, "rotation:y", parent.rotation.y, parent.rotation.y+ang,abs(ang/speed),Tween.TRANS_EXPO,Tween.EASE_OUT)
+ _ret = start()