Skip to content
Marc Flerackers edited this page Jun 14, 2024 · 3 revisions

The named component assigns a name to an object which can be used to search on, or to assign animations to.

leftLeg.add([
  sprite(),
  named("left-foot")
])

character.query({name: "left-foot"})
Clone this wiki locally