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.

Newcomers DBPro Corner / How Do You Make Infinite Matrix

Author
Message
Kenn
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: PHILADELPHIA, USA
Posted: 2nd Jan 2006 10:54
I have a Ocean I'm flying over really fast. I running out of ocean how can I make it run forever. I could make it really large but I think it would slow everythign down.

Thanks Alot.
Gillypie
19
Years of Service
User Offline
Joined: 5th Jun 2005
Location: In Front Of My Computer
Posted: 2nd Jan 2006 20:47
i am a newb so i don't now if this would work, but you could try making a new matrix when yo say get to the middle of the matrix. and delete the old 1 when you get to the end.
im probly wrong, but you never know.....

LO
gbark
19
Years of Service
User Offline
Joined: 14th Oct 2005
Location: US - Virginia
Posted: 2nd Jan 2006 22:37
It's quite possible to create the illusion of an infinite matrix using only one matrix.

To create the illusion, use SHIFT MATRIX then either UP, DOWN, LEFT, or RIGHT, depending on what direction you need to scroll it.

Here's code that demonstrates it, it's commented, but if you have any questions, just ask...



You can fool some people some of the time, but you can't fool all the people all the time.
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 2nd Jan 2006 22:41
I believe there is a scrolling matrix demo that comes with DBC. Go to the shift matrix command info page, and click on example. It is a nice demo, and it helped me make one of my games earlier.


Hippopotomonstrosesquippedaliophobia-Fear of long words

Login to post a reply

Server time is: 2024-11-27 07:50:13
Your offset time is: 2024-11-27 07:50:13