Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
Rainbox #115213
03/05/07 16:20
03/05/07 16:20
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
Anyone ever experienced a box that when you enters in that invisible box, the rain starts and a rain sound starts, then when you go out of the box, the rain stops and the sound stops? I could also add a luminosity drop when you enter the box...

Any idea of how to do this? Thanks!

EDIT: my player is the Newton car, so i dont know if the collision system is the same... anyway.. thanks in advance

Last edited by Marky Mark; 03/05/07 16:20.

Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: Rainbox [Re: Marky Mark] #115214
03/05/07 16:42
03/05/07 16:42
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Collision won't be a problem. The best way to do it would probably not by collision, but by distance. If the car is within range of an entity, then run the rain effects...


xXxGuitar511
- Programmer
Re: Rainbox [Re: xXxGuitar511] #115215
03/05/07 16:52
03/05/07 16:52
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
ok so let's say i have my cloud entity, i dont need any box? I just need to use the distance of the cloud entity?

ok if so... hum,.. any example ?


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: Rainbox [Re: Marky Mark] #115216
03/05/07 17:01
03/05/07 17:01
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Code:

ACTION Cloud
{
// Range to scan for rain...
my.skill1 = 5000;
//
while(1)
{
if (vec_dist(my.x, player.x) < my.skill1)
{
// Rain...
}
else
{
// No Rain...
}
wait(1);
}
}




xXxGuitar511
- Programmer
Re: Rainbox [Re: xXxGuitar511] #115217
03/05/07 17:40
03/05/07 17:40
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
thanks!


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: Rainbox [Re: Marky Mark] #115218
03/05/07 18:15
03/05/07 18:15
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
hum.. i get an error

Code:

while(1)
{
if (vec_dist(my.x, player.x) < my.skill1)
{
// Rain...
rainit();
}
else
{
// No Rain...
}
wait(1);
}



Here's the error:


Note that my car action that is newtonvehicle have the line "player = my;"

Thanks


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: Rainbox [Re: Marky Mark] #115219
03/05/07 18:43
03/05/07 18:43
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
EDIT: Works.

one more thing:

My rain looks bad. I want a simple particles script that makes rain falls, but here is some bad things:

When i do a fast 180 degrees, i can see that it was not raining beside me (then it starts) ...

The rain looks intermittent: It goes by a bunch of particles, then when they are all finished, a new bunch arrives from the sky...

I made a simple script with easyparticle 3...

Thanks to help again

Last edited by Marky Mark; 03/05/07 19:02.

Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: Rainbox [Re: Marky Mark] #115220
03/06/07 00:03
03/06/07 00:03
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
The problem with the "grouping" of particles is caused by having more particles than your "var max_particles" is set. Just open the display00.wdl and increase this value until it looks smoother.

I myself am not a big fan of easy-particles. It is nice for creating ideas, and previes for an effect, but not good for a final product. The best way that I found to create nice rain particles was to create a simple (round) dot with an alpha channel, and then use the "streak" flag so that it stretched it out to form a verticles line (as if it were stretched from falling).


xXxGuitar511
- Programmer
Re: Rainbox [Re: xXxGuitar511] #115221
03/06/07 00:07
03/06/07 00:07
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
will it work with extra?

and maybe you could show me how you do?


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
Re: Rainbox [Re: Marky Mark] #115222
03/06/07 00:30
03/06/07 00:30
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Ah, sorry. The streak flag is comm and pro only...

But the max particles thing isn't...


xXxGuitar511
- Programmer
Page 1 of 4 1 2 3 4

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