How to scale sprite around pointer's point?


#1

I need scaling sprite not only his center like anchor(0.5, 0.5), but more - scaling around pointer cursor when this cursor is over and intersect target sprite. Need help !


#2

So you probably want to listen to some input events?

sprite.anchor.set(0.5)
sprite.inputEnabled = true
sprite.events.onInputOver.add(() => sprite.scale.set(1.1))
sprite.events.onInputOut.add(() => sprite.scale.set(1))