Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (PeroPero, 1 invisible), 858 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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