Posts: 319
Threads: 68
Joined: Mar 2005
I was reading some of the turtorials on this website wich btw are very cofusing (no offence to anybody, including me) and i noticed 2 different ways to write a sprite: sprite(1000) and sprite(10,10). Does it really matter so much wich one to use because i havent came across a use for the sprite(10,10) yet.
his world has been connected...
Tied to the darkness.
Soon to be completely eclipsed.
There is so very much to learn...
You understand so little.
A meaningless effort.
One who knows nothing can understand nothing.
-Ansem Bringer of darkness and creator of the heartless
the only way i could forsee the need to use multidimensioned arrays would be for animations. but there is no need there, as the arrays can be arranged linearly inside the single dimension and still acceptable.
wheres that tut btw
Posts: 319
Threads: 68
Joined: Mar 2005
www.qbasicnews.com in the turtorials section
his world has been connected...
Tied to the darkness.
Soon to be completely eclipsed.
There is so very much to learn...
You understand so little.
A meaningless effort.
One who knows nothing can understand nothing.
-Ansem Bringer of darkness and creator of the heartless
Posts: 77
Threads: 15
Joined: Mar 2004
Personally, I like to use multi-dimensional arrays for sprites. If you're a beginning QBasic programmer though, you'll probably want to use a single dimensional array because of simplicity.
nd remember kids, only you can provoke forest fires!
Posts: 319
Threads: 68
Joined: Mar 2005
is eather one easier to do than the other cause what it looks like to me is using the GET command and sprite(1000) just looks easier to do cause with the other one you need to write out the FOR Y=1 TO 10: FOR X=1 TO 10. if you were gonna use multi demsion making bitmaps then wouldnt it be easier just to read from the data sets again?
his world has been connected...
Tied to the darkness.
Soon to be completely eclipsed.
There is so very much to learn...
You understand so little.
A meaningless effort.
One who knows nothing can understand nothing.
-Ansem Bringer of darkness and creator of the heartless
Posts: 77
Threads: 15
Joined: Mar 2004
Well, I never use the GET command so I'm not sure which type of array would be better. It seems as though the linear array would work better.
nd remember kids, only you can provoke forest fires!
Posts: 6,419
Threads: 74
Joined: Mar 2002
It's the same, but the 2D array approach isn't forwards compatible with FB as it uses row order as opposed to QB which uses column order, so you have to change the order of your dimmensions to make the source compilable in FB.
Posts: 2,771
Threads: 96
Joined: Oct 2003
Quote:sprite(1000) and sprite(10,10)
Sorry to be picky, but dont you mean sprite(100)?
Posts: 1,407
Threads: 117
Joined: Dec 2002
Quote:It's the same, but the 2D array approach isn't forwards compatible with FB as it uses row order as opposed to QB which uses column order, so you have to change the order of your dimmensions to make the source compilable in FB.
AARGH!!! Where did you get the info?? Now I understand some things...
Antoni
Posts: 319
Threads: 68
Joined: Mar 2005
Is there any difference between sprite(1000) and sprite(100) or you could just use the max: sprite(16383)
his world has been connected...
Tied to the darkness.
Soon to be completely eclipsed.
There is so very much to learn...
You understand so little.
A meaningless effort.
One who knows nothing can understand nothing.
-Ansem Bringer of darkness and creator of the heartless