|
|
Rainbox
#115213
03/05/07 16:20
03/05/07 16:20
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
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
Expert
|
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
OP
User
|
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]
#115218
03/05/07 18:15
03/05/07 18:15
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
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
OP
User
|
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
Expert
|
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
OP
User
|
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.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|