Skip to content

EntityAlpha

Narta Xaymar Dirks edited this page Oct 29, 2026 · 6 revisions
Blitz3D

EntityAlpha

EntityAlpha:Void entity:Int32, alpha:Float32
Parameter Mode Type Default Description
entity In Int32 required Entity handle.
alpha In Float32 required Opacity from 0 to 1. Defaults to 1 on a new entity.

Description

Sets how see-through an entity is: 1 is solid, 0 is invisible and values in between let what is behind show through. An entity with alpha 0 is not drawn at all but still takes part in collisions, unlike HideEntity. See-through entities are drawn after the solid ones.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
camera = CreateCamera()
PositionEntity camera, 0, 0, -6
light = CreateLight()
RotateEntity light, 45, 45, 0
back = CreateCube()
PositionEntity back, 0.6, 0, 2
EntityColor back, 255, 200, 40
glass = CreateSphere(20)
PositionEntity glass, -0.6, 0, 0
EntityColor glass, 80, 160, 255
EntityAlpha glass, 0.5
RenderWorld
Flip
WaitKey

Media

EntityAlpha

Related Commands

EntityAutoFade, EntityBlend, EntityClass, EntityColor, EntityDepthFade 〔BlitzLLVM〕, EntityDistance, EntityFX, EntityInView

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally