sprite - handle of existing sprite red - the red
color value (0-255) totalframes (optional) - total number of frames in an animated sprite (created with the LoadAnimImage3D() function) |
By default sprite textures use a mask color of 0,0,0
(black). This command lets you apply a new mask to the sprites texture. It works in the same manner as the 2D MaskImage command. Example: mysprite=LoadImage3D("TeddyBear_YellowBackground.bmp") The optional totalframes parameter is used for
animated sprites created with LoadAnimImage3D() TOTALFRAMES=24 ** Note. The MaskImage3D command will not work well on jpeg images due to compression. Use png/bmp files etc... Thanks go to BlitzSupport for this function. |
Include "Sprite Control.bb" SpriteGraphics3D 640,480 mysprite=LoadImage3D("myimage.bmp") RenderWorld |