Fire Script?
3 posts • Page 1 of 1
Fire Script?
Hello everybody,
I was wondering if somebody can show me or share with me the fire script. I am making a new set of video called algosathalon but elimination needs fire. There is a youtube video for the fire script but the person has not shared the script. Can you post it if you have it. Thank you.
I was wondering if somebody can show me or share with me the fire script. I am making a new set of video called algosathalon but elimination needs fire. There is a youtube video for the fire script but the person has not shared the script. Can you post it if you have it. Thank you.
- FlickDuke2
- Posts: 3
- Joined: Mon Aug 20, 2018 1:50 am
Re: Fire Script?
I am unsure how exactly this script looked like, however I created one myself in the past and can lend you the way I made something look like it's burning up. Maybe you will find it usable(I would highly appreciate if you would credit me in the scene description for the script):
If you use this in onCollide, use e.other.xxx
If you use it in onLaserHit, use e.geom.xxx
If you use this in onCollide, use e.other.xxx
If you use it in onLaserHit, use e.geom.xxx
- Code: Select all
e.other.timetolive = 2;
e.other.postStep = (e)=>{
vol = colorhsva(2) - colorhsva(2) / 3.0;
color = color + ([vol, 0, 0, 1] - color) / 30.0;
rand.uniform01 > 1 / (1 + area) && rand.uniform01 > 0.5 ? {
scene.addCircle({
pos := pos + 0.5 * [rand.uniform01 * 2 - 1, rand.uniform01 * 2 - 1] * area ^ 0.5;
colorhsva := [0, 0, 0, 1];
radius := 0.025 + rand.uniform01 * 0.05;
edgeblur := 0.1;
collideset := 0;
timetolive := 2;
poststep := (e)=>{
color = color - [0, 0, 0, 1] / sim.frequency / 1.5
};
drawcake := false;
drawBorder := false;
density := 0.001
})
} : {}
}
- FRA32
- Posts: 229
- Joined: Wed Dec 03, 2014 9:51 pm
Re: Fire Script?
Thank you! this is great! I will check it out.
Certainly will credit you
Certainly will credit you
- FlickDuke2
- Posts: 3
- Joined: Mon Aug 20, 2018 1:50 am
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests