How do I make CreateLaserA shots disappear?
I was making a spellcard with bullets coming in from the side using CreateShot01, which works like I wanted to,
and a with a laser fired every 1.5 second to force people to move instead of only dodging up/down.
However, currently I'm getting sniped by lasers that won't disappear trapping me.
The code for @MainLoop currently looks like this:
@MainLoop{
SetCollisionA(GetX,GetY,32);
SetCollisionB(GetX,GetY,16);
if(time==90){
CreateLaserA(1,GetEnemyX,GetEnemyY,500,20,BLUE01,60);
SetLaserDataA(1,0,GetAngleToPlayer,0,0,0,0);
FireShot(1);
time = 0;
yield;
}
time++;
yield;
}
So how do I make it disappear after a while?
I've already tried making it shrink, but then it appears on the other side, which looks pretty ugly.