Tagged Questions
-1
votes
0answers
76 views
What's the idea on the base of rendering camera on 2D platformers games? [closed]
I'm programming a 2D platformer game, and I am wondering about how the right to left scrolling of the camera is done in a game like this.
There is a background that need to be updated. There are also ...
0
votes
1answer
56 views
Putting a 2d camera into a gamestatemanagement sample [closed]
Hello everyone i am new to xna and i am trying to implement a simple 2d camera that follows my sprite around the level i am using a gamestatemanagement so i have the basic platformer with screen ...
1
vote
3answers
132 views
Creating an update “Tick” on tiles for simulating growth of plants
In my 2D tile based platformer I have added plants to be able to farm such as the simplest, grass, to other things like corn. Now each of these speacial tiles must be updated to show how much it has ...
-5
votes
1answer
91 views
camera2d class will not work [closed]
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using ...
0
votes
1answer
151 views
How to make AABB collisions work? [closed]
I am unable to make efficient AABB collision in XNA 4. I am making a platformer, with tile based map.
Here is what I do in my tile class :
public virtual void Update(GameTime gameTime, ...
0
votes
0answers
80 views
Managing shots of the player [closed]
I'm currently developing a 2D Jump'n'Run and the situation is the following: The player has different weapons he can collect and is then able to shoot the weapon's projectiles (laser, rockets, ...
0
votes
1answer
117 views
Storing large array of tiles, but allowing easy access to data
I've been thinking about this for a while. I have a 2D tile bases platformer in XNA with a large array of tile data, I've been running into memory problems with large maps. (I will add chunks soon!)
...
3
votes
3answers
397 views
Tile based platformer, using larger tiles?
So for my tile based platformer, It has a grid of tiles Occupying 1x1 block for each one.
However, What if I want larger tiles? Maybe doors, tables, etc. They wouldnt fit in a 1x1 tile, so what I ...
0
votes
3answers
315 views
Code Problem Involving Vertical Movement of Platforms
I am trying to create vertical moving tiles with the Microsoft Platformer Starter Kit. My platforms can move in one direction; however, they fail to switch direction.
If my platform starts at the ...
2
votes
1answer
639 views
Platformer Starter Kit - Collision Issues
I'm having trouble with my game that is based off the XNA Platformer starter kit.
My game uses smaller tiles (16x16) then the original (32x40) which I'm thinking may be having an effect on collision ...
0
votes
1answer
228 views
Platforms collide-able on one side only
I have frequently tried to make some sort of a platformer, but when I actually code it, I run into a bit of a snag. How would I be able to make platforms in the air stop objects if they hit the sides ...
7
votes
1answer
3k views
Microsoft XNA Platformer Example, is the Collsion Detection implemented accurately?
The example provided by Microsoft seems as if the collision detection (from what I can see) will have a small error. When the user collides with an Unpassable tile, the depth of the intersection is ...
5
votes
5answers
2k views
45° Slopes in a Tile based 2D platformer
I want to have simple 45° slopes in my tile based platformer, however I just cant seem to get the algorithm down. Please take a look at the code and video, maybe I'm missing the obvious?
...
2
votes
1answer
618 views
Platformer collision detection problems
I'm having a few problems with collision detection in my game (written in C# with SDL.Net). Detecting the floor and roof is fine, as does detecting sides of tiles when not jumping/falling. My problem ...
1
vote
1answer
715 views
How to make a platformer character go DOWN a 315 degree slope?
Alright, so I got this code I'm trying to write, but the player won't go down the slope, it goes down and up perfectly on the 45 degree slope, but the 315 degree one is a mess. it goes "up" the ...
43
votes
7answers
3k views
2D Platformer AABB collision problems
I have a problem with AABB collision resolution.
I resolve AABB intersection by resolving the X axis first, then the Y axis.
This is done to prevent this bug: http://i.stack.imgur.com/NLg4j.png
...
22
votes
6answers
4k views
A way to store potentially infinite 2D map data?
I have a 2D platformer that currently can handle chunks with 100 by 100 tiles, with the chunk coordinates are stored as longs, so this is the only limit of maps (maxlong*maxlong).
All entity positions ...



