This commit is contained in:
parent
d221962270
commit
cf12a96a75
|
@ -39,7 +39,7 @@ func _input(event):
|
||||||
else:
|
else:
|
||||||
$NoChargesSound.play()
|
$NoChargesSound.play()
|
||||||
|
|
||||||
func _process(delta):
|
func _process(_delta):
|
||||||
transform.origin = target.global_position
|
transform.origin = target.global_position
|
||||||
%camera_spot.look_at(target.global_position)
|
%camera_spot.look_at(target.global_position)
|
||||||
if not camera_tweening:
|
if not camera_tweening:
|
||||||
|
@ -72,6 +72,7 @@ func release():
|
||||||
%ChargeReleaseSound.play()
|
%ChargeReleaseSound.play()
|
||||||
var billiard := target.get_billiard()
|
var billiard := target.get_billiard()
|
||||||
billiard.hit((target.global_position - %camera_spot.global_position).normalized(), get_charge())
|
billiard.hit((target.global_position - %camera_spot.global_position).normalized(), get_charge())
|
||||||
|
TAS_System.StartIncrementingFrames()
|
||||||
|
|
||||||
%radial_ui.set_charge(0.0)
|
%radial_ui.set_charge(0.0)
|
||||||
%ChargeSound.stop()
|
%ChargeSound.stop()
|
||||||
|
|
Loading…
Reference in New Issue