moving textures

Posted By: DAVIDMORETON

moving textures - 06/29/15 16:06

A long time ago (the files are now missing due to hard disc failing)I used the 'lava' texture to simulate lava flowing down a mountain side - and very realistic it was !!
I can't remember the coding (I think it was quite short, using U and V) and I can't find anything about it in the manual.
Can anyone help please? I think I used a lava 'sprite'
Yours hopefully, David.

PS I am using A7 and c-script
Posted By: rayp

Re: moving textures - 06/29/15 16:17

Code:
action water_current() // assign to a water sprite
{
	while (1) {
		my.v = 5*total_ticks;
		wait (1);
	}
}

Posted By: DAVIDMORETON

Re: moving textures - 06/30/15 08:33

Hi Rayp,
MANY THANKS for your help - it works PERFECTLY, I spent two days trying to code this problem !
I have now stopped pulling out my hair - thanks again.
David.

Just remembered - It may help someone else - I once had a very good water effect - river flowing over stones using two water sprites, top one with reduced transparency and at a different speed.
© 2024 lite-C Forums