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 / hills with small code?

Author
Message
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 5th Apr 2005 10:34
how can i make a 10,000 sized matrix one great huge steadily growing hill without coding every single matrix square?
Neofish
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 5th Apr 2005 22:07


Is that what you mean? I haven't compiled that but I think it's right Also if you want the slope to incease you can have c^2 (c squared) or something similar when setting the height.

Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 6th Apr 2005 02:39
i think he wants the highest point in the matrix in the middle of the screen...
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 6th Apr 2005 02:39
in the middle of the matrix i mean...
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 6th Apr 2005 09:16
Well, in that case you would do the same thing again just dec the varible this time.

The finished code would look like this:


ionstream
20
Years of Service
User Offline
Joined: 4th Jul 2004
Location: Overweb
Posted: 6th Apr 2005 11:29
Quote: "without coding"


Well, none of us have a magic wand, so youre gonna have to go with coding.

Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 6th Apr 2005 18:08
I made a little code snippet in DBC so u can save ur matrix as an image. Maybe that could be helpfull...

http://forum.thegamecreators.com/?m=forum_view&t=51813&b=6
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 6th Apr 2005 21:14
Well, if you want you could just use a matrix editor like Matedit or Magic World. They work pretty good, but if you want to gain skill then I would suggest doing it by hand, like with the code that Neofish posted. But you could do it either way.

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 7th Apr 2005 00:00
Is this sort of what you want?




"Lets migrate like bricks" - Me
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 7th Apr 2005 00:40
Ya, I forgot...you need to put Update Matrix 1 at the end of the code.

doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 7th Apr 2005 08:00
thanks, thats exacly what i was looking for!
Jimmy
21
Years of Service
User Offline
Joined: 20th Aug 2003
Location: Back in the USA
Posted: 7th Apr 2005 08:03
The hills are allliiiiiiiivvve with small teh coooodeziiccc

Login to post a reply

Server time is: 2025-05-23 08:59:44
Your offset time is: 2025-05-23 08:59:44