.duplicate() duplicates a sprite and gives the clone all of its properties, including scripts
for my script, that won't work since it relies on 'self' for duplicating
i'm looking for a way to duplicate a sprite without giving the parent's script to the clone, or duplicating a sprite but only giving it the parent's textures

the result of the script being copied over to the duplicated nodes:
the script runs once for every node containing that script

var newnode = self.duplicate()
add_child(newnode)
  • Just make a new sprite, then copy the properties you want.

    var newnode = Sprite.new()
    newnode.texture = texture

Just make a new sprite, then copy the properties you want.

var newnode = Sprite.new()
newnode.texture = texture