hi!
how do i make these 2 particles work in lite-c?:
----------------------------------------------------------
BMAP* spark_map = "spark.pcx";
BMAP* blood_map = "blood.pcx";
function main()
{
video_mode = 8;
video_screen = 2;
level_load("level.wmb");
}
function particle_spark()
{
VECTOR temp;
temp.x = random(2) - 1;
temp.y = random(2) - 1;
temp.z = random(1) - 1.5;
vec_add(vel_x, temp);
my.alpha = 30 + random(50);
my.bmap = spark_map;
my.size = 10;
my.flare = on;
my.bright = on;
my.move = on;
my.lifespan = 20;
my.event = fade_particle;
}
function particle_blood()
{
VECTOR temp;
temp.x = random(2) - 1;
temp.y = random(2) - 1;
temp.z = random(1) - 1.5;
vec_add(vel_x, temp);
my.alpha = 70 + random(50);
my.bmap = blood_map;
my.size = 6;
my.flare = on;
my.bright = on;
my.move = on;
my.lifespan = 20;
my.event = fade_particle;
}
function fade_particle()
{
my.alpha -= 5 * time_step;
if(my.alpha < 0) {my.lifespan = 0;}
}
-------------------------------------------------------
i can't make it work. how do i do??
thanks!
- Muhsin Kaymak
Come and play my new browsergame - Valley Of Wolves:
http://www.mafiacreator.com/ValleyOfWolvesHurry and be the first to take over the different business' in the Valley Of Wolves, before anybody else does it!
And be the most feared MafiaBoss in the World!!