|
|
Re: Rainbox
[Re: Marky Mark]
#115235
03/09/07 06:21
03/09/07 06:21
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
lol - thanks man...
You need anymore help with your StormChaser project, let me know...
even if you need "guitar music" for recreating that one scene in twister, lol. They don't call me Guitar for nothing...
xXxGuitar511 - Programmer
|
|
|
Re: Rainbox
[Re: xXxGuitar511]
#115236
03/09/07 06:22
03/09/07 06:22
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
LOL hehe I got a question for another work on the project.. maybe I should start a new topic, but anyway. If I want my whole storm system to move... Can I just group the whole package, and make this group move? (certainly not, nothing is easy..  ) Thanks
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: Rainbox
[Re: Marky Mark]
#115237
03/09/07 06:27
03/09/07 06:27
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Hmm... please be more specific. I'm not quite following you...
You want to move the clouds [which hold the storm], or just the location of the storms center?
xXxGuitar511 - Programmer
|
|
|
Re: Rainbox
[Re: Marky Mark]
#115239
03/09/07 06:37
03/09/07 06:37
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Well, you'll have to move the clouds then...
All of the effects [lightning, rain, sound, etc] are based on the clouds position, so you will simply have to move the clouds.
My next concern is, do you plan on having more than one storm at a time in the level? If no, then moving the storm will be very simple. If yes, then I'll have to take a look at more code...
xXxGuitar511 - Programmer
|
|
|
Re: Rainbox
[Re: xXxGuitar511]
#115240
03/09/07 06:46
03/09/07 06:46
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
No i dont think I will have more than 1 storm at a time, but sometimes I will need a bigger one, i could just stretch it instead of adding a copy of it. The lightning strikes are not based on my cloud model, its invisible box that moves under the storm, and some in the clouds, then it makes like a positive with a negative contact, so the lightning strike appears between 2 cubes.. So I will have to move those cubes too.
Yeah! IE sucks, use Mozilla... Marc Rémillard.
|
|
|
Re: Rainbox
[Re: Marky Mark]
#115241
03/09/07 06:59
03/09/07 06:59
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
ok, here's my plan... Create an entity for the center of the storm. Then place this (in WED), in the center of your storm  . Then, during the first cycle of the [clouds, lightning cubes, etc] action, they will find their offset from the storm center, and save it in a skill (or three). var StromScale = 1; ACTION StormCenter { StormC = my; } ACTION Cloud [lightning, etc] { wait(1); vec_diff(temp, my.x, StormC.x); vec_set(my.skill50, temp); ... while(1) { ... vec_set(my.x, StormC.x); vec_set(temp, my.skill50); vec_scale(temp, StormScale); vec_add(my.x, temp); ... wait(1); } } Then you'd just use another function to move around StormC.x, and all else will follow... plus you can also set the StormScale value to scale the storm...
xXxGuitar511 - Programmer
|
|
|
Re: Rainbox
[Re: xXxGuitar511]
#115242
03/09/07 07:14
03/09/07 07:14
|
Joined: Jul 2002
Posts: 857 Québec
Marky Mark
OP
User
|
OP
User
Joined: Jul 2002
Posts: 857
Québec
|
But then if I move the storm center, the other objects would keep their distance with the center? and for the stormscale, how does it works?
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
|