Hi everyone,
I'm trying to make a laser effect for my game, and the manual says that bmap_to_alpha has replaced "flare", which I used extensively in A6. Here is my
Code:
BMAP* BeamBmap = "laserpart.pcx";
function BeamPart(PARTICLE* this)
{
this.bmap = BeamBmap;
this.size = 2;
this.flags |= BEAM | TRANSLUCENT;
this.lifespan = .001; // lasts one frame: a new beam is created each frame
this.event = NULL;
}
function InitFX()
{
bmap_to_alpha(BeamBmap, 100);
return 1;
}
The results, however, aren't what I expected. The way it is, with the percent factor set at 100, the beam disappears:
Same for 30% (which the manual recommended) and 0%.
With the factor set to -100, the particles are opaque, black squares:
But without the bmap_to alpha, the particles have ugly black halos:
What am I doing wrong? I don't think this is a bug in Gamestudio; this project has had many problems, and all but one have been my fault. It's usually something simple, too. Can other pairs of eyes catch what mine have missed?
Sorry if the pictures don't show up; Google's been having issues lately...