alpha on rectangles

Blitz3D Forums/Blitz3D Programming/alpha on rectangles

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

okay, I tried using a sprite, but I can't get it working right. The sprite is not visible
;create the camera
Global camPointer = CreatePivot()
PositionEntity camPointer,640,72,1895
TurnEntity campointer,0,-135,0,True

;campointerY = TerrainHeight#(terrain,EntityX(Campointer),EntityZ(CamPointer)) * 128
;PositionEntity camPointer,500,campointerY,700

Global cam = CreateCamera(camPointer)
MoveEntity cam,0,80,-100
CameraFogMode cam,1
CameraFogColor cam,150,150,150
CameraFogRange cam,300,1024

;the sprite for the background of the buttons
buttonbg = createsprite(cam)
scalesprite buttonbg,graphicswidth() - 20,130
entitycolor buttonbg,0,0,0
positionentity buttonbg,entityx(cam),entityy(cam),entityz(cam)
;pointentity buttonbg,campointer
moveentity buttonbg,0,0,2
;note that I've tried many distances for this, up to 10.

What am I doing wrong?