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 3 of 4 1 2 3 4
Re: Rainbox [Re: Marky Mark] #115233
03/09/07 04:17
03/09/07 04:17
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Rightm take the while() loop out of lightning_strike()


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

Joined: Jul 2002
Posts: 857
Québec
It works great. I'll say it again. You are god


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
User
Marky Mark  Offline 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 Offline
Expert
xXxGuitar511  Offline
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: xXxGuitar511] #115238
03/09/07 06:31
03/09/07 06:31
Joined: Jul 2002
Posts: 857
Québec
Marky Mark Offline OP
User
Marky Mark  Offline OP
User

Joined: Jul 2002
Posts: 857
Québec
I want to move the whole storm cloud, including the lightning strikes generator objects and the rain curtain generator object.. I want all of this to be moveable by a function, so everything realted to the storm cloud would be depending on the function which moves the object in a direction (very slowly) .. Cause you know, my storm is currently not moving and that's not very good for realism


Yeah! IE sucks, use Mozilla...
Marc Rémillard.
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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
User
Marky Mark  Offline 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 Offline
Expert
xXxGuitar511  Offline
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 Offline OP
User
Marky Mark  Offline 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.
Page 3 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