The "vngen_get_xscale" Function

Syntax

vngen_get_xscale(id, type, [name]);
ArgumentTypeDescription
idreal/stringThe ID of the specific entity to check
typeinteger/macroSets which type of entity to check
[name]stringOptional: Sets the character name to check, if entity is an attachment

Description

Returns the absolute horizontal scale multiplier of the specified entity, taking into account any active modifications and animations.

See Macros & Keywords for a full list of available entity types.

Example

var xscale = vngen_get_xscale("bg", 1);
var yscale = vngen_get_yscale("bg", 1);
var rot = vngen_get_rot("bg", 1);
draw_sprite_ext(my_sprite, -1, x, y, xscale, yscale, rot, c_white, 1);