[↑]
SPSCALE
- Change the sprite scale (display magnification)
SPSCALE SpriteNumber,MagnificationX,MagnificationY
- Get sprite display magnification
SPSCALE SpriteNumber OUT SX,SY
1. Change the sprite scale (display magnification)
SPSCALE SpriteNumber,MagnificationX,MagnificationY
・SPCOL is executed first for the collision detection considering the scale.
・Error when used before SPSET.
Arguments
SpriteNumber
Target sprite number: 0 to 4095
MagnificationX,Y
0.5 (50%) to 1.0 (100%) to 2.0 (200%) and more
・Depending on the hardware specifications, the reference image may be shifted by 1 pixel depending on the setting value.
Example
SPSCALE 56,0.75, 0.75
2. Get sprite display magnification
SPSCALE SpriteNumber OUT SX,SY
・Error when used before SPSET.
Argument
SpriteNumber
Target sprite number: 0 to 4095
Return Value
SX,SY
Sprite magnification
Example
SPSCALE 45 OUT SX,SY
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the
official reference site
of the
SmileBoom Co.Ltd.
that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it.
For automatic update, contents may become improper.
Please confirm the correct content in an official site.
June 3, 2020
by mim
OK
|