Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Complex Scenery Help.

Author
Message
Squall alias Leon
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: United Kingdom
Posted: 12th May 2005 01:28
Hello. I have 3 problems I would like some one o help me with.

1. In a fight scene (Final Fantasy style) I would like their to be a storm with lightening and gusts passing by

2. In this fight scene, I would like my rain to fall too.

3. The Camera rotates around the playing field, but I cannot slo it down. It rotates at "step 1" but if I lower the value, it doesn't even move.

The problem has arisen where I have the code for the rain but DarkBASIC tells me that i have no memory, so i cannot see if this works.

As for the lightening and storms, I really have no idea as of where to go with it, or even start. Any suggestions?
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 12th May 2005 01:30
for the camera rotating make sure you are using floats because otherwise the decimal point gets taken off. To use a float just put a # at the end of the variable everytime you use it.

The happenings of tommorow are behind us now
Squall alias Leon
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: United Kingdom
Posted: 12th May 2005 02:33 Edited at: 12th May 2005 02:36
Ok, I changed the following parts of the code, but it still did not move after i changed the code.

angstep I changed to angstep#=0.5
then I changed it to angstep#=(1/2)
also I changed all angstep to angstep# in the code
Then I changed angle to angle# aswell

No joy...

I have included the camera code I am using. Anyone who thinks they can adjust it, by all means have a go.

NOTE: This is a seperate program. When this code is working I will start to add on weather conditions. The Rain is also a seperate program to this one, which I will add to this program once it is running.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 12th May 2005 04:22
Here's a raindrip function:



good luck
Squall alias Leon
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: United Kingdom
Posted: 12th May 2005 15:56
Very nice code. thank you, however. I still have a problem where if I put it in with mine, the camera doesn't move at the same time. I'm going to try to re-arracnge my code a little, but if anyone has any ideas how to do 2 for/next commands in the same loop, I'd be very greatful
Squall alias Leon
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: United Kingdom
Posted: 12th May 2005 16:07
Wohoo, got it working! can't have alot of rain though, but it does the trick!

Now I just need the camera slowing right down, and lightenin in the background sparking everynow n then... Any ideas?
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 12th May 2005 16:13
Here is the camera rotating slowly



The happenings of tommorow are behind us now
Squall alias Leon
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: United Kingdom
Posted: 12th May 2005 17:24 Edited at: 12th May 2005 17:27
Excellent. Thank you very much. worked very well, I also have now included a screen flash at certain points to create the illusion of lightening. Thank you all for your help

On last thing, I would like gust effects to pass by. Can any one help?

I think plains textured passin by facing the camera at all times whilst their in screen would do it, perhaps a small plain creating a few duplicates behind it for a second, creating a trail... but I'm not good with plains...

Login to post a reply

Server time is: 2025-05-23 04:12:18
Your offset time is: 2025-05-23 04:12:18