Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (EternallyCurious, howardR), 646 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
moving textures #452878
06/29/15 16:06
06/29/15 16:06
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
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

Re: moving textures [Re: DAVIDMORETON] #452880
06/29/15 16:17
06/29/15 16:17
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Code:
action water_current() // assign to a water sprite
{
	while (1) {
		my.v = 5*total_ticks;
		wait (1);
	}
}


Last edited by rayp; 06/29/15 16:17.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: moving textures [Re: rayp] #452910
06/30/15 08:33
06/30/15 08:33
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
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.

Last edited by DAVIDMORETON; 06/30/15 08:50.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1