Qbasicnews.com

Full Version: A serious programming problem here....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
No, that won't work.

The system that I want to have would start from the upper left and then go right and down.

Edges would be viewable by being able to go out of bounds several tiles in.
Quote:No, that won't work.

The system that I want to have would start from the upper left and then go right and down.

Edges would be viewable by being able to go out of bounds several tiles in.

I don't understand, that's exactly what my function does, display tiles from the upper left.
Er, oh, well, never mind.

I want it to go like this:

start with x.adj, y.adj
column 1:
for z times,
x.adj, y.adj
x.adj+1, y.adj+1
x.adj+2, y.adj+2
etc...

column 2
for z+1 times, (and up 22 pixels)
x.adj, y.adj-1
x.adj+1, y.adj
x.adj+2, y.adj+1
etc

column 3
for z times,
x.adj+1, y.adj-1
x.adj+2, y.adj
x.adj+3, y.adj+1

column 4
for z+1 times, (+22 pixels up)
x.adj+1, y.adj-2
x.adj+2, y.adj-1
x.adj+3, y.adj

etc...

Can you gimme a formula for this? Smile
nm, i figured it out.
Pages: 1 2