Skip to content

ScaleSprite

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions
Blitz3D

ScaleSprite

ScaleSprite:Void sprite:Int32, x_scale:Float32, y_scale:Float32
Parameter Mode Type Default Description
sprite In Int32 required The sprite.
x_scale In Float32 required Width factor.
y_scale In Float32 required Height factor.

Description

Changes the width and height of a sprite. A sprite starts as 2 by 2 units, so a scale of 1 keeps that size. Unlike ScaleEntity it is the only way to scale a sprite and it keeps the sprite facing the camera.

Related Commands

CreateSprite, HandleSprite, LoadSprite, RotateSprite, SpriteDepthFade 〔BlitzLLVM〕, SpriteViewMode

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally