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 / glitchy matrix

Author
Message
New Creature Feature
20
Years of Service
User Offline
Joined: 27th May 2004
Location: Tennessee- USA
Posted: 29th May 2004 20:19
I'm just getting started in DBC so I am borrowing code from the existing examples.

I have a randomized matrix. You push the left or right cursor to scroll either way, but when the matrix comes to the point where it is supposed to be seamless there is a glitch.

I changed the height of the matrix and the speed at which the original program moved (I think that's what I changed). What am I doing wrong?

Alan

Therefore if any man be in Christ, he is a new creature: old things are passed away; behold, all things are become new. II Corinthians 5:17
DeepBlue
22
Years of Service
User Offline
Joined: 17th May 2003
Location: A little box in the UK
Posted: 30th May 2004 00:23
You need to shift at the edge of each tile (ie when tile width -/+ position=matrix tile size, in this case 10 due to size/divisions in matrix)

Posted your code modified below



Think it should be ok

Twynklet
New Creature Feature
20
Years of Service
User Offline
Joined: 27th May 2004
Location: Tennessee- USA
Posted: 1st Jun 2004 03:27
Thanks Twynklet

it worked!

Alan

Therefore if any man be in Christ, he is a new creature: old things are passed away; behold, all things are become new. II Corinthians 5:17

Login to post a reply

Server time is: 2025-05-24 02:59:16
Your offset time is: 2025-05-24 02:59:16