Hello, I'm not sure if this will make sense but hopefully it will.
Essentially I working on a 2D platformer as a way to develop a small 2D engine I'm working on that will hopefully help me when creating games in the future with XNA. The game is much like Mario, and like in Mario I need the view to follow the main character while moving non-player characters/enemies off the screen. I was wondering if anyone has developed a view-handling class or other code that would allow for a view to follow my main character on the X axis atleast while moving other objects off the screen while still allowing them to move relative their location. So while my character is running to the right of the screen, all objects are being pushed to the left until they are off the screen, however they are still able to move around while this is happening (they walk on a cycle). I've looked at the XNA documentation and I haven't seen any easy way off doing this, but if there is then please point it out.
All help is appreciated, thankyou for your time.

Moving the view in 2D games
CPPUSer7
0,0,0,0,0,0,0,0,0,0,0,0,0,0,
ttad
{
Remember we're drawing a screen size of 1280x720. So what we've done is move left of the player by the half the width and up by half the height. This will put the player right in the middle of the camera. Again you might want to put this into a function and call it CameraLookAt( targetX, targetY ) or something.
And that will get you a game that scrolls around. There's plenty to do to make it neat and tidy though for example...
Stephen J.Vanterpool
kweicht
Ganeshkumar S
There's something that I've always wondered about these plataform games like the old Super Mario's. How are the usually maps saved Are they one huge contiguous horizontal picture, or they're made with tiles following a map array of some sort, like old RPG's And how do they define for each part of the map, where the bottom floor is located; if the level is all slopy going up and down: is this information stored somewhere, or is it done in real time with collision detection between each sprite and the floor layer
David
Luis Esteban Valencia Muñoz
newcyan
PraveenL