1
vote
1answer
167 views

How do I ensure that my 2D side-scroller camera stays within the world bounds?

I have tried implementing a basic 2D sidescroller camera in XNA, but I don't want it to be able to scroll past the edges of my tile map! I tried to fix it, but when I get the left side working, the ...
1
vote
1answer
93 views

Drawing chunks, and positioning the camera

I've seen many questions and answers regarding how to draw tiled maps but I can't really get my head around it. Many answers suggest either loading the visible part of the map, or loading and ...
10
votes
2answers
3k views

XNA 2d Camera Scrolling - why use matrix transform?

I am making a test game where I want the level to be constantly scrolling. To create this effect I have established a camera class which simply stores a vector2 position and an enum direction. It also ...
0
votes
1answer
668 views

Camera Matrix Transform to scroll through level - Monogame, XNA

I am trying to change the way I scroll through a level. Currently I have a static camera class which stores a direction enum and a vector 2 position. This class then has a method to move the position ...
0
votes
2answers
1k views

UDK: Sidescrolling Camera not working

I tried the sidescrolling camera from http://udn.epicgames.com/Three/CameraTechnicalGuide.html#Example%20Side-Scrolling%20Camera but there are some warnings ...
3
votes
2answers
410 views

Silverlight scrolling with camera

I'm trying to get my head around scrolling a 2D map that uses a physics engine. If I was to launch a projectile, would I actually be applying the physics to the background images rather than the ...
3
votes
2answers
2k views

Implementing camera for 2d side scroller game?

I'm implementing a 2D side scroller for iOS (using C/C++ with OpenGL) (beat'em up style like double dragon/final fight ). My scenes are composed of one cyclical background image ( the end of the ...