36 votes
Accepted

How to avoid ghosting when pressing multiple keys?

You can't. At least, not as a game developer. As a gamer, you can purchase more expensive keyboards with "anti-ghosting" features, but otherwise the limitation is part of the hardware itself, so ...
congusbongus's user avatar
  • 14.8k
7 votes
Accepted

Unity2D jumping inconsistancy

I'd recommend changing Input.GetKey("space") to Input.GetKeyDown("space"). This way the check is only performed on the initial ...
Chris McFarland's user avatar
3 votes
Accepted

Programmatically creating a continuous scrolling background in Game Maker: Studio

To dynamically scroll through a very large background made up of smaller frames, there are many different solution; the main idea though is quite the same. The main idea Think of your fifteen ...
liggiorgio's user avatar
  • 4,577
3 votes
Accepted

How can I easily create/edit a level for a scrolling shooter game?

The reason you might not find any good literature about this subject is because the best solution always depends on the game, its architecture, its scope and your team's preferred workflow. Possible ...
Philipp's user avatar
  • 118k
3 votes

Why do old platformers typically scroll to the right?

The answer to this is a synergy of a number of factors. Most people are right handed. Most languages are written from left to right. When placing objects, people typically start to the left and ...
ROGRat's user avatar
  • 104
3 votes

How to avoid ghosting when pressing multiple keys?

Buy a better keyboard. Ghosting is caused by the hardware itself. Even many gaming keyboards will still have this problem; they only invest in fixing the problem for "common" keys like WASD (but not '...
Sean Middleditch's user avatar
3 votes
Accepted

Unity sidescroller with 3D objects/environment. Should I create a 2D or 3D project?

You should create your project in 3D, although it's only a minor convenience. The two modes don't change any aspects of what your game can do or the fundamental workflow, they just configure certain ...
DMGregory's user avatar
  • 130k
2 votes

How do I make my foreground tiles stand out more from the background?

A good way to get an idea of how to make your foreground stand out from the background is to research similar games. If you look at games such as Sonic and Megaman, the backgrounds of the levels all ...
driima's user avatar
  • 995
2 votes

How do I make my foreground tiles stand out more from the background?

Another option is to adjust your Hue, or colors in general, so that they are not the same color as your foreground elements. Or you could try to give a bolder outline to the foreground elements to ...
jgallant's user avatar
  • 8,354
2 votes
Accepted

Good item distribution for 2d scroller game

The frequency of bonus items would mostly affect the time players spend to acquire the necessary amount and buy a new skin. So, it comes down to the cost of the skins, the movement speed and the ...
interphx's user avatar
  • 395
2 votes
Accepted

Procedural sidescroller world gen algorithm by seed

You'd solve this the same way as you do in 3D. In 3D games with procedurally generated landscapes, you can often see a distant mountain that's located in a different generation site than the one you'...
DMGregory's user avatar
  • 130k
2 votes
Accepted

2d side scroller slope physics and collisions

It's really no different than sloped 2d case Consider the following picure. In this instance, to move over the ramp you would just move using the slope of the ramp. Easy right? y = mx+b kind of ...
Krupip's user avatar
  • 1,713
2 votes

How to smoothly move camera when the player is climbing a diagonal staircase in 2D tile-based side-scroller?

As Jelle van Kampen mentions in his answer; this is a valuable resource: Itay Keren - Scroll Back: The Theory and Practice of Cameras in Side-Scrollers I'll provide my implementation of a camera ...
Felsir's user avatar
  • 4,037
2 votes
Accepted

How to smoothly move camera when the player is climbing a diagonal staircase in 2D tile-based side-scroller?

In the scenario you describe, there are two points that could improve the smoothness of your camera: (1) the position of the camera with respect to the player, and (2) the movement of the camera ...
Jelle van Campen's user avatar
2 votes

How can I easily create/edit a level for a scrolling shooter game?

Currently I know only of two ways. pre-defined If your levels are limited and should always (basically) be the same then you are good to go to create the levels with as Unity scene. 30 levels, 30 ...
monty's user avatar
  • 374
2 votes

How would I incorporate gravity and gravity affecting obstacles into A* pathfinding in a 2d side-scrolling game?

A* is very smart but also very dumb. It is a graph search algorithm; that means that A* assumes that any two connected points in the graph are reachable without checking back into the game itself to ...
glfmn's user avatar
  • 21
1 vote
Accepted

How do you partition a level and create screen transitions out of these partitions?

Both options are viable. But separating your game into multiple scenes can have various advantages. It's better for performance to have less "stuff" in the scene at once (while Unity can do some ...
Philipp's user avatar
  • 118k
1 vote

Rendering Tilemap Tile Layer Side by Side for Infinite/Endless Runner Game

if i understand right , you missed to check this. if, your MAP_PIECE is 2nd you must add(if moving right) previous MAP_PIECE's width if, your MAP_PIECE is 3rd you must add MAP_PIECE's width x2 if, ...
Levon Ayvazyan's user avatar
1 vote

Camera scrolling hiccups

Are you measuring the rendering rate using external tool like FRAPS, etc? If not, I would first suggest that. As far as troubleshooting goes, try lowering the framerate to anything lower than the ...
ForeverZer0's user avatar
1 vote

How to implemement smooth side scrolling in a DOS game?

I may have to see if I can use the port call. As of now, I do it via software which is a lot of loop de doo. First I pre string 4 320x200 images together while slicing them into 10x200 segments, ...
Michael Russo's user avatar
1 vote

Procedural sidescroller world gen algorithm by seed

If you know your maximum width of sprite -- then you can check for the presence of any sprite between your screen.X - maxSpriteWidth to screen.x + screen.width. If the scale of your objects is truly ...
Jimmy's user avatar
  • 9,019
1 vote

Programmatically creating a continuous scrolling background in Game Maker: Studio

I figured out a workaround. As i posted before, I don't know for sure if the code above works but if it doesn't you can try this one out.It is based on the one above but I also put variables in case ...
konkrz's user avatar
  • 11
1 vote

Offsetting ground texture doesn't work in WebGL

for texture scrolling you should use "Repeat" in import settings instead of "clamp"
Yevhen's user avatar
  • 1,470
1 vote
Accepted

Prevent tires from tunneling in 2d sidescrolling car game

Your code is a bit confusing to follow, due to poor indentation, useless commented code and lack of intermediate variables width a meaningful name. That said, I can locate your problem to in the ...
MrBrushy's user avatar
  • 411
1 vote

A single libgdx gamescreen with pop-up menu, getting ready, hud and game over?

Yes. It is possible. Any of the scene2dUI widgets, like Table, inherit from Actor. Actor ...
spectacularbob's user avatar
1 vote

A single libgdx gamescreen with pop-up menu, getting ready, hud and game over?

You should probably take a look at Scene2D's Window class. Think of it as a screen that just overlays other screens. It's also a Table, which means you can add ...
Charanor's user avatar
  • 7,790
1 vote

How to resolve push block physics in a 2D side scroller puzzle

I had the same issue with my first game. I fixed the alignment issue by placing a Trigger in the hole that detects whenever a block touches it when that happens the block touching the Trigger gets ...
1 vote

How do I make my foreground tiles stand out more from the background?

I am not expert at graphic design so when i want to make a game i usually test the graphic resource that i made in the game, if something is wrong I change it until I have decent graphic design here ...
Netero's user avatar
  • 191
1 vote
Accepted

2D Infinite Runner: how to manage the generation of dynamic terrain?

As long as the player is alive, you can increase the offset of the texture. Basically the player stays still and the texture moves. Little cheating in this method as it takes around 20 lines of code ...
Jorden's user avatar
  • 35
1 vote
Accepted

Touch pad controls not working in apk, working from Unity Remote

Good to see you solved your issue. To avoid such problems, make extensive use of anchor points in Unity UI. That will make sure your UI elements stay where you intended.
SanSolo's user avatar
  • 1,159

Only top scored, non community-wiki answers of a minimum length are eligible