sprite_height

Indicates the height of the sprite. This value cannot be changed but you might want to use it.

Example

draw_text(x,y-sprite_height+5,'TEXT')

This will draw TEXT 5 pixels above the sprite. If you change y- into y+, it will make the text's Y increase, so it will appear lower. +5 is how far TEXT must be drawn from the object. +5 means it will be the sprite's height plus 5.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License