Label "duplicating" itself when swapping control of command menu?

Godot Version

4.3

Question

So I’m making a prototype for a little command menu that’s shaped like a clock, and I have Labels that transition with each other in order to display command names. For some reason when swapping control from one hand to another, the text in the Labels create static duplicates? I’m not really sure how else to describe it, and I can’t send attachments yet since I made this account to ask about this.

how are you swapping control? Can you paste a script sample? Make sure to use formatting with the </> button or ctrl+e to create a code block with three ticks like so

```
type or paste code here
```

I’m swapping control by emitting a signal from the hour hand to the minute hand and then freezing the hour hand from moving. All of it is in the hour hand:

		if event.is_action_pressed("ui_accept"):
			# Freeze hour hand and change its color
			canRotate = false
			modulate = Color.BLUE
			# Duplicate the hand in order to perform a visual effect
			effect = duplicate(0)
			effect.top_level = true
			effect.position = get_parent().get_parent().get_node("CenterClockPos").position
			effect.rotation = rotation
			add_child(effect)
			effect.visible = true
			vfxHappen = true
			# Emit a signal to the minute hand if toggled on to pass control
			if minuteHandToggled:
				emit_signal("send_to_hand")

If needed, I do actually have the project itself on GitHub. Apologies if it would have been easier to have just posted that first.

Seems like the arrow effect is working. I pressed space and the arrow turns blue, expanding in size and fading out. If the minute hand was enabled then I could press space twice, the second arrow would turn blue-purple, expand, and fade out. Neither rotates, but I don’t see any code for that. The label shows “Fight” each time.

Could you explain what you are doing? what you expect to happen? and what really happens?

I recommend converting your lerps to tweens, but that’s just visuals

Thanks for responding. I fear that there’s been a misunderstanding here, so sorry for that.

For one, you can rotate the arrows with left and right. That isn’t mentioned anywhere so that’s a mistake on my part.

Second, my main problem is with the labels. When the hands switch to another icon, the labels switch their text to the icon’s name. This is by design. When it switches to the minute hand, however, the label text on-screen for the hour hand stays even as the text itself reverts back to Fight for the minute hand. That is my issue, with a “duplicated” label stuck on the screen.

Third, I’ll take into note making them tweens instead of lerps, though I’m rather new to animation, so I’m not sure what the difference is.