{
r = pmap[y+ry][x+rx];
if (!r)
continue;
if ((r&0xFF)==PT_SALT && 1>(rand()%250))
{
part_change_type(i,x,y,PT_SLTW);
part_change_type(r>>8,x+rx,y+ry,PT_SLTW);
}
I can do transistions to elements, but is there any way to make transistion like watr+sand+stne=salt, but only watr+sand or watr+stne=none. So it would need more than two different particles to happen.
And also can I make it like if they are 10 pixel away from each other and it happens.
Thanks for help.