Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprite(1000) compared to sprite (10,10)
#1
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
Reply
#2
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
Reply
#3
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
Reply
#4
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!
Reply
#5
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
Reply
#6
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!
Reply
#7
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.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#8
Quote:sprite(1000) and sprite(10,10)

Sorry to be picky, but dont you mean sprite(100)?
Reply
#9
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
Reply
#10
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)