Godot Version
4.7
Question
I have very simple particle looking like this:
enemy with pivot attached to it and the particles attached to the pivot
The pivot has very simple code
extends Node2D
@export var rotation_speed: float = 20.0
func _process(delta: float) -> void:
rotation += rotation_speed * delta
This rotates the particles around the enemy. The problem is this:
when enemy character2d doesnt work it’s fine. but when it starts moving the particle leaves an irregular trail behind. I want them to follow their parent (moving enemy)
image example:
Video example:
So I thought the simple solution to this would be making particals neither global nor local to itself but to the parent (or owner of the scene, in this case characterbody2d which is the enemy) But there is no such option. Tried messing around with the RemoteTransform2D but I didn’t have any success. Maybe I’m going at this from a very wrong direction or something like this isn’t possible? Either way I’d greatly appreciate your help.


