Set pivot

This commit is contained in:
Ketchetwahmeegwun T. Southall 2022-01-29 22:13:47 -08:00
parent 9774e9abe7
commit 08d0232e37

View File

@ -54,6 +54,8 @@ export class SpriteInstance {
s.x -= this.frame.originX
s.y -= this.frame.originY
this.container.addChild(s)
this.container.pivot.x -= this.frame.originX
this.container.pivot.y -= this.frame.originY
}
}