added in sprite wobble

This commit is contained in:
2025-07-19 05:54:34 +10:00
parent 2840c5e923
commit 4624824ebb
5 changed files with 146 additions and 73 deletions

View File

@@ -42,6 +42,12 @@ func setImage():
$WobbleControl/yFrq.value = Global.heldSprite.yFrq
$WobbleControl/yAmp.value = Global.heldSprite.yAmp
$WobbleControl/rFrqLabel.text = "rotation frequency: " + str(Global.heldSprite.rFrq)
$WobbleControl/rAmpLabel.text = "rotation percentage: " + str(Global.heldSprite.rAmp) + "%"
$WobbleControl/rFrq.value = Global.heldSprite.rFrq
$WobbleControl/rAmp.value = Global.heldSprite.rAmp
$Rotation/rDragLabel.text = "rotational drag: " + str(Global.heldSprite.rdragStr)
$Rotation/rDrag.value = Global.heldSprite.rdragStr
@@ -139,6 +145,15 @@ func _on_y_amp_value_changed(value):
Global.heldSprite.yAmp = value
func _on_r_frq_value_changed(value):
$WobbleControl/rFrqLabel.text = "rotation frequency: " + str(value)
Global.heldSprite.rFrq = value
func _on_r_amp_value_changed(value):
$WobbleControl/rAmpLabel.text = "rotation amplitude: " + str(value) + "%"
Global.heldSprite.rAmp = value
func _on_r_drag_value_changed(value):
$Rotation/rDragLabel.text = "rotational drag: " + str(value)
Global.heldSprite.rdragStr = value

File diff suppressed because one or more lines are too long