SpriteDrawMode help please

Started by ATLUS, March 31, 2015, 11:09:35 AM

Previous topic - Next topic

ATLUS

Hi all
Please someone help me, i don't understand correctly how to works SpriteDrawMode. Me need custom masksprite and rotate sprite.
PlayBASIC Code: [Select]
LoadImage "img/fluppi.png", 1
ImageMaskColour 1, RGB(255, 174, 201)

CreateSprite 1
SpriteImage 1, 1
SpriteDrawMode 1, 2+4
centerspritehandle 1



monkeybot

#1
i can't delete this post

kevin

QuotePlease someone help me, i don't understand correctly how to works SpriteDrawMode. Me need custom masksprite and rotate sprite.

  don't really know what your trying to do,  as your loading the wrong image types and then trying to uniformly alpha blend  it to the video memory ? Not a good idea !

    Economizing Image Blitting (drawing!)

  If your image has alpha channel then you need to load it as an AFX surface.  The sprite rendering will automatically to use the alpha channel filtering instead of mask colour.  Although it's generally best to set a MASKCOLOUR anyway if you want pixel level collisions later on.   To control the translucency of the sprite,  set the blend level through the Alpha component of TINT Colour. 

   SpriteTint INdex,ARGB(Alpha,RED,GREEN,BLUE)
   





ATLUS