cool, yeah jumping is always hard to do lol.
anyways i need some help real quick, im trying to make a grid of sprites covering the screen using a for loop or something, other then making like 200 spsets lol.
would it be better to A: create 24 FOR loops incorporating the y 16 more each time making a grid.
or B:
do something else simpler that i dident know i could.
You don't want to create 24 FOR loops. Instead you want to make a nested FOR loop. Or in other words you have a FOR loop with another FOR loop inside of it.
FOR Y = 1 TO 15
FOR X = 1 TO 25
'Code to set up a sprite
NEXT X
NEXT Y
An example is attached. Let me know if you have any problems.
no it just makes like 3 oddly placed blocks by eachother.
also i was wondering if it ever gets annoying for you to put all those % (and $/#) in your code for everything?
it seems like a lot of work just for option strict.
Option Strict doesn't require specifying data types, only that you declare variables. For your problem you just need, like Stewart said, a nested For loop. That's how you do grids. If it's not working you have something wrong.
If it isn't working we may be able to diagnose the problem if you post a screen shot of the code in question.
Option Strict, and adding data type postfixes are an ounce of prevention versus a pound of cure type of thing. They can head off a lot of very hard to debug problems ahead of time. It does take little longer, but I think it is worth it and I recommend it. It has saved me plenty of times.