It looks like you're new here. If you want to get involved, click one of these buttons!
I'm trying to get the dimensions of a Sprite for a project I'm creating. I have tried sprite.width and sprite.height, and that didn't work. Anyone know how to get them?
img=readImage("Planet Cute:Character Horn Girl")
@niorg2606 you can also do this:
local width,height=spriteSize("Planet Cute:Character Horn Girl")
Except, I would recommend what @dave1707 did because it's much more versatile.
As @CamelCoder pointed out, there's usually more than one way to do something. You'll find that out as you write more code. A lot of it comes down to your coding style.