News:

Function Finder  Find all the functions within source code files

Main Menu

Sprite Alpha Chanal

Started by ATLUS, July 04, 2008, 11:32:11 AM

Previous topic - Next topic

ATLUS

Plz help me me need load sprite and creat alpha color!
QuoteloadFXimage "gfx\ball.bmp",1
createsprite 1
spriteimage 1,1
spritedrawmode 1,4
spritealphacolour 1,rgb(255,0,220)
positionsprite 1,100,100
rendertoscreen
setfps 60

do
   Cls RGB(0,0,0)
   drawallsprites
   sync
   loop

ATLUS


kevin

#2

loadFXimage "gfx\ball.bmp",1
ImageMaskColour 1,rgb(255,0,220)


For lp=1  to 6
Spr=NewSPrite(100+LP*20,100+lp*20,1)
Spritedrawmode Spr,4
SpriteAlphaLevel Spr,1-(lp*0.10)
next

Setfps 60
Do
   Cls RGB(0,255,0)

   DrawAllSprites

   sync
loop


ATLUS

Big Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :)

Adaz

Try this too


loadFXimage "gfx\ball.bmp",1
ImageMaskColour 1,rgb(255,0,220)

dim spr(6)

For lp=1  to 6
Spr(lp)=NewSPrite(100+LP*20,100+lp*20,1)
Spritedrawmode Spr(lp),4
SpriteAlphaLevel Spr(lp),1-(lp*0.10)
next

Setfps 60
Do
For lp=1  to 6
movesprite spr(lp),rnd(5)-rnd(5),rnd(5)-rnd(5)
next
Cls RGB(0,255,0)
DrawAllSprites
sync
loop

Ádáz

Hungary

ATLUS