0
votes
0answers
47 views

Which way would a character face if he is moving one way, but pointing his gun a different way? [closed]

So I am creating a 2D platform game in C++ with SFML, in which the character wields a 2 handed grenade launcher type of gun. The character is controlled with they keyboard (arrow keys or WASD), and ...
0
votes
1answer
158 views

Camera controller in a 2d platformer

I'm basically bumming around using Unity's 2D creation tools, and I've managed to create a little platformer physics demo. There's a lot of work to be done, but I've got basic movement down, some ...
0
votes
1answer
102 views

Adding a small slide when player releases left/right key

the aim is for the player object to slow down and stop instead of just stopping dead. The following codes works ok when the player is not jumping, but gets stuck in an object if the player is in the ...
1
vote
1answer
191 views

Unity 2D camera drifts from player as speed increases

I have a dilemma that I did not have in XNA before porting my game to Unity. First-- my goal is to mimic Super Mario World 2's camera tracking in x. The camera tracks to 1 block ahead of the player, ...
2
votes
2answers
91 views

How to use camera transformation without depending on (1,-1) scale during spriteBatch.draw()

I am creating a 2D platformer type game in XNA. I currently have a camera object, with a position/rotation/zoomlevel that I use to generate a transformation matrix to pass to SpriteBatch.Begin(). ...
0
votes
1answer
121 views

Tile System with moving Platforms

I am using a tile based system where the level is stored in a char: char[,] Level2 = {{'.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.'}, ...
0
votes
1answer
43 views

Stopping sprties from toppling off platform

I am new to Unity and am trying to create a simple 2d platformer. I have applied a box collider to my player sprite and the floor/platform its standing on. Now when I go over the platform, it toppes ...
0
votes
0answers
84 views

How to design basic physics and movement behavior for 2D platformer?

I want to make a simple 2D platformer. I know some basic 2D physics and how to implement them in a game. How to make a character jump, accelerate, decelerate, etc. But I have no idea how to actually ...
4
votes
1answer
480 views

Algorithm for randomly generating reachable platforms

I want to randomly generate reachable platforms on the fly for a 2D game. Right now, I am just creating platforms at random x,y positions. Only 4 platforms can exist at once, so once the 5th one is ...
0
votes
1answer
911 views

Platformer raycast collision detection

I'm using Unity to create a 2D platformer. For collision detection, I'm using raycasting to detect any possible collisions with specific collision layers, and adjusting the desired delta x & y ...
12
votes
1answer
1k views

In platformer games, what are “hole in the ground” obstacles called?

In most jump and run games, holes in the ground are common obstacles: You need to jump over them, or you'll fall down and lose a life. It would be helpful to know for documentation, variable naming ...
1
vote
2answers
118 views

Calculate shadow map to overlay hidden line-of-sight things in 2d?

Given a 2D sideview with even-sized grid squares and our hero in a known center-ish position like this ... and imagining this hero's line of sight like this... how could one get the point values ...
0
votes
1answer
223 views

Scaling background without scaling foreground in platformer?

I'm currently developing a platform game and I've run into a problem with scaling resolutions. I want a different resolution of the game to still display the foreground unscaled (characters, tiles, ...
1
vote
1answer
197 views

How can I implement jumping in a 2D game using bounding box collision?

Problem: I'm trying to implement basic jumping to my 2D game engine, but have failed several times. Basically what I've done so far is disabling gravity and using a separate function moving the player ...
1
vote
1answer
316 views

What's the most memory efficient way to load a tiled map?

Currently I am working on a simple 2D platformer and I want to load a tiled map. What I've started working on is loading the tiles using a text file. My first question is simple: is a text file the ...
4
votes
2answers
386 views

Allowing a player to walk up and down slopes without resistance

I am trying to implement a platformer where both the player and the level are made up of arbitary polygons. One requirement is that the player can stand still on slopes, and walk up and down them ...
-1
votes
1answer
471 views

2D Contra style game - main character 360 degree gun aim

I'm about to make my first simple game. I'd like to know some of the ways to achieve a 360 degree gun aim in a 2D contra-like shooter. The thing is I want it to be 360 degrees, not just 8 direction ...
0
votes
2answers
197 views

Spritesheet vs single tiles

I am currently programming a 2d platformer and this is the first time I am coding a video game. Now I've downloaded the 'platformer art deluxe' package. In the tiles folder there are single tiles and ...
0
votes
2answers
248 views

List of 2d action games with level editors [closed]

Action game level design is hard. If you want to hone your skills at designing action game levels, the problem is that first of all you have to make a good game, with good controls, interesting ...
2
votes
1answer
453 views

One to one aiming in 2D platformer

Hello all I have been having an issue with a 2D platformer I'm working on in Unity. It has an aiming style similar to Shadow Complex where the aiming will rotate around the character in direction to ...
2
votes
1answer
758 views

How to handle a Tile Map Scrolling [duplicate]

i'm making a video game, and i'm having, i think, a concept problem. The game will be a platformer which will use tile maps, so to start i will create a mask matrix indicating the tiles to be loaded, ...
5
votes
3answers
351 views

How do you find games with a similar idea?

I'm thinking about making an indie game and want to know if there's maybe one with similar idea. I'm not asking about my idea specifically, I just want to know how to find out if a game has the same ...
-2
votes
1answer
421 views

Why does my sprite shake while moving?

Player movement causes its sprite to shake a bit. I don't what is causing it or how to fix it. I recorded a video of the problem. In the recording, it looks like the world is shuddering, but only ...
1
vote
1answer
106 views

2D Platform character getting “unaligned” with the map

I'm trying to make a 2D Platform game and so far I can have my character moving around in a tiled map and collisions are working too. So far so good. The problem I'm having is that the character can ...
0
votes
1answer
982 views

How can I implement infinite scrolling by scrolling the background's texture, not the quad? [duplicate]

I'm writing a 2D platformer game on Java with LWJGL. I'm doing this just for the sake of learning and not the result itself, so when I decided to implement scrolling I did it two ways I could invent ...
-1
votes
1answer
408 views

How was traditional 2D collision detection/resolution being done? [closed]

Just out of pure curiosity, I'm wondering how classic 2D games of the 80s/90s (The Legend of Zelda, Super Mario, Warcraft, ...) approached collision detection/resolution. For some reason I can't ...
0
votes
1answer
283 views

Why do I see this “ghosting” effect with my sprite in SDL?

I'm using SDL to create a 2D side-scrolling platformer, but I'm getting ghosting from the sprite. I'm not used to programming with graphics or SDL so excuse any stupid remarks I make. Here's the ...
2
votes
1answer
331 views

How to do 2D Raycasting on a slope

I have a 2d platformer game where my slope can be set at any angle, so I've setup a middle raycast that points to the ground onto the player to handle the collision. This works perfectly fine on a ...
1
vote
3answers
201 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 ...
1
vote
1answer
759 views

UML Class Diagrams for 2D platformer Games? [closed]

I have to develop a small arcade game in C++ for a college assignment using a 2D Game Engine my teacher coded. What would be the best way to make a UML class diagram for it? It's very basic stuff but ...
0
votes
2answers
290 views

Making The Player Stop Bouncing And Stop Sinking In The Ground In A Platformer XNA

Heres a problem i've been having. I have a platformer, and whenever my player hits the ground he keeps bounding. Here's the falling code iceBoy.moveY++; iceBoy.position.Y += moveY; Now heres the ...
0
votes
1answer
219 views

Collision with Two Angled Platforms

I've encountered a problem in my attempt to implement Collision Handling for a game I'm creating, involving a collision with two angled platforms. I'm using GJK-EPA for detecting/handling collisions ...
4
votes
2answers
166 views

Why is my collision resolution failing on the corners?

I'm tearing my hair out trying to work out how to handle my collision resolution at the corners of the rectangles that I'm colliding with. The code that I'm working with is: class Player(object): ...
0
votes
1answer
177 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!) ...
1
vote
2answers
386 views

Need material for character anatomy in a 2D game. Spartan Like, See Picture

I'm creating my art for an 2d based IOS game. I know some basic anatomy as you can see by the picture but I have no idea how I will make draw the pics for animation of the character walking, attacking ...
2
votes
1answer
703 views

Trouble with AABB collision response and physics

I have been racking my brain trying to figure out a problem I am having with physics and basic AABB collision response. I am fairly close as the physics are mostly right. Gravity feels good and ...
4
votes
2answers
375 views

Detecting a ledge in Box2D [duplicate]

Possible Duplicate: Detect Open Space in Farseer How do I detect ledges? I'm making a 2D platformer with Box2D. The player needs to be able to grab onto a ledge and pull him/herself up. ...
2
votes
2answers
426 views

One-way platform collision

I hate asking questions that are specific to my own code like this, but I've run into a pesky roadblock and could use some help getting around it. I'm coding floating platforms into my game that will ...
3
votes
2answers
1k views

Platformer Enemy AI

I'm currently developing a platformer shooter. The game is multiplayer and while my net code could use some real work I have put that off for the time, so currently I'm trying to implement the AI. ...
3
votes
3answers
463 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 ...
4
votes
1answer
1k views

The Physics behind 2D Platformer Games? [closed]

Is there any good book or tutorial that explains the physics behind creating a 2D Platformer game? Such as tile rendering, tile map reading, collision detection, camera movement etc.?
0
votes
4answers
276 views

Big level objects collision system for 2d game

I read many variants today and get some knowledge in general, so here is a steps of mine thoughts in pictures (horrible paint.net ones). We need to develop grid system, so we check only thing near, ...
4
votes
1answer
277 views

How to cull liquids

I use culling on my Tiles in my 2D Platformer (XNA), so only ones needed are drawn on screen. Thats easy to do. However, My Liquid tiles (Water, lava, etc) require an Update Method aswell as the ...
2
votes
1answer
1k views

Handling hitboxes

So I have an issue that I'm laughing at myself about, because it really seems like it should be something that I should be able to figure out pretty quickly. I am designing a 2D action platformer; I ...
5
votes
1answer
2k views

Slopes in 2D Platformer

I'm dealing with Slopes in a 2D platformer game I'm developing in XNA Game Studio. I was really tired of trying without success, until I found this post: 45° Slopes in a Tile based 2D platformer, ...
4
votes
1answer
2k views

Collision with tile corners/seams in 2D platformer

There seems to be a lot of somewhat related questions answered already, but none I read answered my exact problem. I have a 2D platformer whose world is made entirely out of tiles that are in a ...
2
votes
2answers
192 views

How to do reflective collisions with particles hitting background tiles?

In my 2d pixel old-school platformer, I'm looking for methods for bouncing particles off of background tiles. Particles aren't affected by gravity and collisions are "reflective". By that I mean a ...
2
votes
2answers
1k views

2D side scroller - How to implement X/Y movement?

I'm currently writing a small 2D, side-scroller-ish kind of game. I have a simple camera that follows the player around and the physics are ready. I'm using 32x32 tiles that build out the world, ...
2
votes
1answer
322 views

How do games using physic engines for 2d games handle platform corners?

I have seen games like latest "2'5D" sonics that handle collision detection at platform corners pretty well. The problem I'm having is that my game uses an ellipsoid as my player's body to let it ...
0
votes
1answer
373 views

objective-c iphone sdk side scrolling

I was making a game and I did the side scrolling like this: if the player get past 150, the player stops moving and the background starts moving. But thats very annoying with placing objects in the ...