sprite_height (Game Maker)

( Game Maker 6.1, 7 )

sprite_height - height of the current sprite

Description

sprite_height contains the height of the current sprite of an instance in pixels.

Examples

Example of Use

instance_create(x,sprite_height/2,obj_bullet);

This will create a bullet in the vertical center of an instance, no matter how tall its sprite is.

Related Pages

Similar To

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.