示例#1
0
func SetIcon(number)
{
	markerindex = number;
	SetGraphics(Format("%d", number), Icon_Number, 1, GFXOV_MODE_Base);
	SetObjDrawTransform(350, 0, 2000, 0, 350, 2000, 1);
	SetClrModulation(RGBa(255, 255, 255, 160) , 1);
}
示例#2
0
protected func Initialize() 
{
  var rand=1;
  if(Random(2) == 1)rand=-1;
  SetObjDrawTransform(1000*rand,0,0,0,1000);
  AddEffect("IntSparks", this, 1, 60, this);
}
示例#3
0
func FxFadeAwayTimer(target, effect, time)
{
	if(time*2 > 250)
	{
		RemoveObject();
		return -1;
	}
	SetClrModulation(RGBa(255, 255, 255, 255 - time*2));
	SetObjDrawTransform(1000 - time * 3, 0, -(time * 2) * 700, 0, 1000 - time * 3);
}
示例#4
0
func FxFadeAwayTimer(target, effect, time)
{
	var t2 = Max(0, time - 200);
	
	if(t2*2 > 250)
	{
		RemoveObject();
		return -1;
	}
	
	var x_pos = (t2 * 4) * 700;
	
	if(time < 100)
		x_pos = ((100 - time) * 1000);
	
	SetObjDrawTransform(1000 - t2, 0, x_pos, 0, 1000 - t2);
	SetObjDrawTransform(1000 - t2, 0, x_pos, 0, 1000 - t2, 0, 1);
	
	if(t2 == 0) return 1;
	SetClrModulation(RGBa(255, 255, 255, 255 - t2*2));
	SetClrModulation(RGBa(255, 255, 255, 255 - t2*2), 1);
	return 1;
}
示例#5
0
func Initialize()
{
	this.Plane=301+Random(230);
	SetPosition(GetX(),GetY()+10);
	var graphic = Random(3);
	if(graphic)
		SetGraphics(Format("%d",graphic));
	size = 1;
	buriedtime = 0;
	waterpos = [0,0];
	SetObjDrawTransform(10,0,0,0,10);
	maxsize=150+Random(30);
	SetR(Random(360));
	SetClrModulation(RGBa(235+Random(20),235+Random(20),235+Random(20),255-Random(30)));
	AddEffect("MossGrow", this, 100, 20, this, this.ID);

}