sprite_width

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

Example

draw_text(x-sprite_width,y,'TEXT')

This will draw TEXT 5 pixels to the left the sprite. If you change x- into x+, it will make the text's X increase, so it will appear farther right. +5 is how far TEXT must be drawn from the object. +5 means it will be the sprite's width plus 5.

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