Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 1,170 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Simple rain #180976
01/30/08 17:35
01/30/08 17:35
Joined: Oct 2007
Posts: 34
Morph Offline OP
Newbie
Morph  Offline OP
Newbie

Joined: Oct 2007
Posts: 34
Hi, a simple rain code?? Thanks


Begginer in 3D Game Studio
Re: Simple rain [Re: Morph] #180977
01/30/08 17:40
01/30/08 17:40
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Take a look at the AUMs:
http://www.conitec.net/english/gstudio/aum.htm

There was a magazin with "intelligent" rain (which does not pass through ceilings etc.)

Re: Simple rain [Re: Xarthor] #180978
01/30/08 20:29
01/30/08 20:29
Joined: Oct 2007
Posts: 34
Morph Offline OP
Newbie
Morph  Offline OP
Newbie

Joined: Oct 2007
Posts: 34
Yes...i was download it's but i can't function in version A7 game studio...my error is "Can't open file OFFICE.WDL", this in all AUMs. help me please


Begginer in 3D Game Studio
Re: Simple rain [Re: Morph] #180979
01/30/08 22:40
01/30/08 22:40
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Code:
 
bmap rain_bmap = <rain.tga>;
function rain_fun
{
my.alpha -= 0.2* time_step;
if(my.alpha <=0)|| (my.z <=0){my.lifespan =0;}
}

function rain
{
my.x = camera.x + (random(600)-300);
my.y = camera.y + (random(600)-300);
my.z = camera.z + (random(200)+200);
my.bmap = rain_bmap; my.move = on;
my.oriented = off; my.facing = on; my.passable =off;
my.alpha = random(40) +40; my.size = random(3) +2;

my.function = rain_fun;
my.vel_z -= (random(20)+30) * time_step;
}


bmap can be simple white thin vertical line maybe with some alpha channel.


Never say never.
Re: Simple rain [Re: tompo] #180980
01/31/08 13:36
01/31/08 13:36
Joined: Oct 2007
Posts: 34
Morph Offline OP
Newbie
Morph  Offline OP
Newbie

Joined: Oct 2007
Posts: 34
Hi tompo, your code is very good but ERROR: "Empty pointer in rain: my.x=camera.x+(random(600)-300)"

What is this???????????

bye


Begginer in 3D Game Studio
Re: Simple rain [Re: Morph] #180981
01/31/08 14:24
01/31/08 14:24
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
put this code in some loop
Code:
 
effect (rain,70 *time_step,nullvector,nullvector); //play with 70



Last edited by tompo; 01/31/08 14:24.

Never say never.

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