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 ...
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 ...
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 ...
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 ...
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 ...
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 '...
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 ...
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 ...
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 ...
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 ...
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'...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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, ...
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 ...
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 ...
1
vote
Offsetting ground texture doesn't work in WebGL
for texture scrolling you should use "Repeat" in import settings instead of "clamp"
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 ...
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 ...
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 ...
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 ...
Community wiki
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 ...
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 ...
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
side-scroller × 1122d × 46
unity × 15
platformer × 14
c# × 13
physics × 12
camera × 11
java × 10
game-design × 9
xna × 8
collision-detection × 8
libgdx × 8
tiles × 8
android × 7
tilemap × 6
opengl × 5
c++ × 5
movement × 4
box2d × 4
monogame × 4
pygame × 4
maps × 4
level-design × 4
mathematics × 3
sprites × 3