You can Access to the sprite scale, setting your varible like that
myScale = Sprite.height / Sprite.imageHeight
I hope I've helped
Develop games in your browser. Powerful, performant & highly capable.
Member since 4 Jan, 2018