Hello there.
I am an excited newbie on the thrill run at the moment. Been working on c# for about three months and XNA 4.0 for a month. I did some tutorials, I have a book and did some examples… All seems fine. Then I found your site and I wish I had found it sooner. It is excellent, easygoing and detailed. Exceptionally newbie friendly. So I went through it all (except 3d parts-they are for later in my menu) and it was like an in-tern course which made things firm in my head.
I was trying to say thank you. Why do I keep it that long? I hope I won't do the same with my codes.
Anyway, now as for c#, I am chipping the idea of classes, inheritance and such things for a month now and along with your 2d tutorials it suddenly made alot of sense. Now my belief about what I was trying to do is stronger. As I have the chance now I would like to ask for; (be warned, extremely newbie questions on tail)
Scrolling background? The basic idea seems to be changing the location of background image according to the user input, right? But how will I make it infinite if the player keeps going in the same direction? Some kind of special background image that looks continous when we add them together as tiles? And how to do that?
What about the other details of the level? Like walls and such? Do I have to load all the map/level onto memory as soon as the level fires up? And trace all the objects/sprites in the level and move their positions according to player movement? To clear up, imagine each line below is one screen high and each double-char is one screen wide. I will use "-" s and "I"s to create a pseudo-ruler. X is the player and o's are enemies. B's are buildings.
I I I I I I I I I I I I
-o B
-o
-
- o x
-
- B
-
The question is, the player is moving upwards towards B. The buildings are stationary, but enemies are moving on their own patrol routes untill they see the player. So player is moving upwards, approaching the building. How do I handle this? By reducing the "Y" property of B.location each update per player speed?
How do I tile the background?
I know I sound like a crazy cat on catnip but could make use of some pointers…
PS: you know a good source to learn some sql easy way?