FANDOM


This command will cause a sprite to shrink or expand depending on the value passed.

SyntaxEdit

void dbScaleSprite ( int iSprite, int iScale )

This command resizes the sprite specified by iSprite by scaling it both horizontally and vertically. The scaling is based on the value 100. Any value of iScale smaller than 100 will shrink the sprite to that percentage. Any value over 100 will expand it.

UsageEdit

dbScaleSprite ( 1, 50 )

The above will cause the width and height of sprite number 1 to be cut in half (50/100 = 1/2)

dbScaleSprite ( 1, 200)

The above will cause the width and height of sprite number 1 to double (200/100 = 2)

See AlsoEdit

dbSizeSprite
dbStretchSprite

dbSpriteScaleX
dbSpriteScaleY
dbSpriteWidth
dbSpriteHeight

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.