Game Development Reference
In-Depth Information
Getting the width and height of a sprite
The sprite_width and sprite_height variables return the width and height of the
sprite currently linked to an object. This becomes useful when positioning text or other
things around the sprite.
The following is the example code:
var sw=sprite_width;
var sh=sprite_height;
Search WWH ::




Custom Search