MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / setScaleY

Method setScaleY

Source/GameObject.cpp:309–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 _particle->setRotation(scalex * (isFlippedX() ? -1.f : 1.f));
308}
309void GameObject::setScaleY(float scaley)
310{
311 Sprite::setScaleY(scaley);
312 _parentMatrix = getNodeToParentTransform();
313 if (_hasGlow)
314 _glowSprite->setScaleY(scaley);
315 if (_hasParticle)
316 _particle->setScaleY(scaley * (isFlippedX() ? -1.f : 1.f));
317}
318void GameObject::setOpacity(uint8_t opacity)
319{
320 if (_primaryInvisible) opacity = 0;

Callers 14

drawPropertiesFunction · 0.80
loadLevelMethod · 0.80
initMethod · 0.80
applyEnterEffectMethod · 0.80
initMethod · 0.80
switchStateMethod · 0.80
from_jsonMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
addCustomSpritesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected