Skip to main content

Questions tagged [side-scroller]

A game where the action is viewed from a side-view camera angle. On-screen characters generally move from the left side to the right.

Filter by
Sorted by
Tagged with
0 votes
0 answers
64 views

Best practices for pixel art background sizes?

I'm looking to start making pixel art for my 2d side-scrolling game prototype. I'm looking for advice on how large to make my pixel art backgrounds. I watched this video before I began to get an idea ...
Alice's user avatar
  • 1
1 vote
0 answers
152 views

making a 5 minute Metroidvania prototype and wanna know if my dev process is good

I've been learning Godot and game dev as a whole since the start of this year and I've sunk dozens of hours into practicing making games in it, lately I've set out to make a very small sort of "...
buzzbuzz20xx's user avatar
3 votes
1 answer
154 views

What was the rationale behind the updating of 'changed' tiles in John Carmack's Adapatie Tile Refresh?

I was recently reading up on Carmack's Adaptive Tile Refresh, of which was written extensively in this thread, to implement in a hobby gamedev project of mine: https://retrocomputing.stackexchange.com/...
Hash's user avatar
  • 83
0 votes
0 answers
104 views

Real-life "fighter jet" like movement behavior in a 2D side-view game

I'm looking for a way to implement a fighter-jet like movement behavior for my non-player entities in my 2D side-view shoot-em-up. I.e. enemy entities (say jets or planes) can't suddenly change their ...
Christian Finke's user avatar
0 votes
0 answers
238 views

2D sidescroller water surface shader

I am implementing a little 2d fishing side-scroller as a hobby. Here is a screenshot of the work-in-progress: I have implemented a underwater distortion effect in a GLSL fragment shader, but I have ...
Ezbob's user avatar
  • 101
2 votes
1 answer
2k views

How to create large Sidescrolling Map in Godot?

I would like to create a 2D Sidescrolling map, like one for a platformer, but for a shooter game. At first I thought I could just draw a big map based on a tilemap and make the player and the enemies ...
pion's user avatar
  • 55
0 votes
0 answers
47 views

2D side-scroller : how to place structures in a noise generated map?

I'm creating a little terraria-like 2D side-scroller game with TypeScript. The map is generated by a 1D noise which indicates the height of the ground at each block. I am looking for the best way to ...
Ekkaia's user avatar
  • 3
0 votes
1 answer
643 views

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

I want to be able to modify the A* pathfinding in a way that I can get my NPC from his current position to any point that's within reach. The tricky part is that this takes place in a side-scrolling ...
ggg's user avatar
  • 1
3 votes
1 answer
627 views

8-way aiming in run 'n' gun

I am developing a 2D run 'n' gun game in Unity and am having an issue getting the aiming to "feel right". Some background: The player can aim in 6 directions when running (left, right, and ...
DyingIsFun's user avatar
  • 1,317
1 vote
0 answers
682 views

Shot em up! Vertical or Horizontal "side scrolling"?

Question it’s about "Shot em up" style game (For example: Tyrian) also known as Top-Down shooters. These games in the past mostly exist as top down concept, it means player object can move ...
streng's user avatar
  • 31
0 votes
1 answer
240 views

2D Side-scrolling Strategy Game Pathfinding Help

Hey Guys,I am trying to implement dungeons into my 2d RTS ish game.The dungeons is made out of rooms, you start at the top, and you can unlock rooms with scouts.The picture is the unlocked version of ...
CodeMonstera's user avatar
0 votes
1 answer
174 views

How do I make my level scroll side-to-side as the player moves?

I am trying to figure out how can I make a side-scrolling view in Pygame. If I am moving right or left, I want the portion of the level shown on-screen to shift to follow the player character. Here ...
Habib Ismail's user avatar
0 votes
1 answer
130 views

Help with NPC following the player in a sidescroller

I'm a beginner with C# and am having a bit of trouble coding an NPC that follows the player in a 2D sidescroller. The player has two speeds, a walk and a sprint. I have a very basic companion follow ...
connorwgardner's user avatar
1 vote
1 answer
203 views

Same scroll speed across devices with different DPI

I am creating a simple game in JS, something like the flappy bird :) For pipe scroll, I am using a linear tween. I noticed that the speed of the pipes are different across different smartphone ...
igobivo's user avatar
  • 111
3 votes
2 answers
769 views

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

I've been asking this question over the years many a time, but I still haven't found an answer when i search for one. Now I have slightly more knowledge of how programming is done and want to start ...
Big T Larrity's user avatar
0 votes
1 answer
676 views

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

The levels in Castlevania games, you walk forward and then come to a point on the level where the screen stops scrolling but is not a deadend and there's no door either. They just wanted to transition ...
g_b's user avatar
  • 369
0 votes
1 answer
481 views

2D vehicle collision detection and rotation

I'm attempting to make a simple 2D car game from scratch, but I can't figure out the collision detection between a vehicle and a road. The vehicle should also rotate appropriately to its position on ...
Michael1996's user avatar
2 votes
1 answer
823 views

Math needed to create a very simple 2D side view car game

I'm trying to create a 2D side view car game (something like Hill Climb Racing, but much more simpler), but I'm confused on the math and physics. Most of the tutorials I found were about making a top-...
user9813314's user avatar
3 votes
1 answer
623 views

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

I was strugeling this for days how to implement tilemap into libgdx and box2d with infinite/endless scheme. I can load a single map and display everything on screen. But placing 2 or more tilemap side ...
Nidian Cahyo's user avatar
2 votes
1 answer
696 views

2d side scroller slope physics and collisions

In old 2d games such as double dragon, streets of rage etc. where the player could move “up and down” on the y-axis to give an illusion of depth (as opposed to something like Mario) how were slopes ...
TommyBs's user avatar
  • 417
3 votes
4 answers
1k views

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

I am working on a game, which is tile-based, similar to the way Terraria works. My player is 2 x 3 and can move over one-high obstacles, but this creates a very jittery effect, since my camera ...
Petar Peychev's user avatar
0 votes
1 answer
218 views

Nullpointer exception with Scrollpane in LIBGDX

I get a strange Nullpointer exception and I don't understand why. Can someone help me ? Exception: ...
user1344545's user avatar
3 votes
1 answer
395 views

Why do old platformers typically scroll to the right? [duplicate]

Lots of old platformers are only left-to-right-ish and they don't allow you to move viewport left. I'm interested was it just a game design choice or it's due to some limitations back then. I have a ...
mingaleg's user avatar
  • 139
0 votes
1 answer
681 views

2D Sidescroller Gravity

Ive looked up implementing gravity on several sites. Subtract a constant gravity (9.8 * DeltaTime) from the velocity each frame. My problem is, when implementing it as they say, when walking off a ...
Pete Mavrelis's user avatar
0 votes
2 answers
181 views

Camera scrolling hiccups

I'm working on a 2D side-scroller, and I've got the technical aspects working. OpenGL renderer, camera movement using acceleration. However, while scrolling I'm constantly seeing tiny random hiccups. ...
Nairou's user avatar
  • 604
1 vote
1 answer
286 views

GameMaker Studio 2 - How to place object back beyond X coordinate for looping (warp)?

I'm making a side-scrolling shooter where I want an object to move from right to left (towards negative X), then, when it's passed out on the left side, jump back to beyond the window width (right ...
fluff_thorrent's user avatar
0 votes
0 answers
2k views

Create a 2D spline-based Terrain in Unity3D

I want a 2d terrain in Unity that can be edited in Scene view. I have come across a github repository which nearly serves my requirements, but I am not sure what exactly I can do to make it have ...
Adnan Nazir's user avatar
2 votes
1 answer
463 views

How to implemement smooth side scrolling in a DOS game?

I'm about to develop (just for fun) a retro DOS game with Turbo C 2.01. Currently I'm wirting directly all the pixel information to 0xA0000000 + [y * 320 + x] which ...
Rainer M.'s user avatar
1 vote
1 answer
2k views

Efficient way to load chunks of a 2d level to prevent game from loading stutters

I am building a 2D sidescroller game in Unity3D. It's tile-based. To get better performance I divided the level into chunks. I activate these chunks when the player enters 2D Triggers and deactivate ...
OneManOnMars's user avatar
0 votes
2 answers
578 views

Procedural sidescroller world gen algorithm by seed

I'm trying to recreate a procedural side-scroller world gen algorithm by using a seed and I find my self stuck trying to solve a particular problem. Seed generation applies very well with voxel-like ...
Row Rebel's user avatar
1 vote
1 answer
87 views

Good item distribution for 2d scroller game

I have made a scroller game where player moves to the right of the screen. I add a new uniform ground block about every 5 seconds. I was wondering how often should I put bonus items. Currently I put ...
morevitamins's user avatar
1 vote
2 answers
4k views

Programmatically creating a continuous scrolling background in Game Maker: Studio

I have 15 background images for a 2D horizontal scrolling shooter game and I have been wondering how to insert programmatically those background images in the first level room, as I want them to be ...
PayToPwn's user avatar
  • 123
0 votes
1 answer
352 views

LibGDX player movement on X axis is very limited

I'm making a side-scroller game using LibGDX, where player can move only on X axis. The problem is that the player can only move on positive X value, so he can't go to negative X. This is not that big ...
Martin Ryu Straka's user avatar
5 votes
1 answer
2k views

Unity2D jumping inconsistancy

I'm tinkering with a unity2D sidescroller, and am trying to make a player controller to jump. However, when I tell my character to jump, it sometimes jumps twice the distance, and I don't know why. ...
Ben Schwabe's user avatar
1 vote
1 answer
338 views

Offsetting ground texture doesn't work in WebGL

so I've created a 2D sidescroller game, the technique I used is to keep the player on the same place, and move the obstacles towards him. I also offset the ground and backdrop constantly to create the ...
John Smith's user avatar
  • 1,255
1 vote
1 answer
208 views

Prevent tires from tunneling in 2d sidescrolling car game

I am working on creating a 2d sidescoller car game (Think hill climb racing). The land is a line and generated at once. I have been setting up the physics for car tires and them hitting the lines and ...
Christopher's user avatar
1 vote
0 answers
154 views

XNA 4.0 Camera and object handling on screen

For developing a side-scrolling platform 2D game I want to implement a moving camera class, the reason of using the class instead of moving the whole map is that I'll have to use too many objects at ...
Lord Wolfram's user avatar
0 votes
2 answers
3k views

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

Is it possible and practical to have only one screen, like a GameScreen class, where the menu, getting ready (plus instructions), hud (only score) and game-over screens can pop-up when needed. Can I ...
Timothy Kodes's user avatar
1 vote
1 answer
1k views

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

I'm looking to make a side-scroller in which the camera and all objects can only move in the x and y directions. However, I'm going to have all objects and environments as actual 3D models. Is it ...
jros's user avatar
  • 123
3 votes
2 answers
1k views

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

I've been working on a 2D tile-based side scroller puzzle game in Unity with obstacles such as doors, keys, fans, portals, etc., but one type of obstacle, push blocks, is giving me some issues. Here ...
tyjkenn's user avatar
  • 2,586
2 votes
3 answers
1k views

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

(the background implemented in the game) In the game that I work on, the background and the map tiles are pretty indistinguishable for new players, probably because they have similar colors and theme....
julian's user avatar
  • 131
16 votes
2 answers
27k views

How to avoid ghosting when pressing multiple keys?

I am working on a 2d side-scrolling pc game that uses SFML game library. The problem that I am not able to solve is that in many keyboards combination of three or more keys (like w + d + k) is not ...
anonymous's user avatar
  • 514
0 votes
2 answers
348 views

Pygame Scrolling Camera bug

I asked a question the other day about how to implement a scrolling camera. I got a great answer which helped me achieve that... but in doing so I have lost basically all collision detection. ...
thevengefulco's user avatar
3 votes
1 answer
3k views

Creating Fog Of View in 2D game with lighting method

I'm creating 2D side scrolling game with Unity, and i want to add feature where the player come into a cave, then all going dark, the player turn on the flash light, so the player can see around ( ...
deanrihpee's user avatar
0 votes
1 answer
671 views

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

I'm creating a infinite runner game with Unity3d, i've been using math to generate the terrain by calculating the size/pos of the terrain and place the new one next to it, and it's working correctly, ...
Luis Alberto's user avatar
0 votes
1 answer
307 views

The camera in a 2D tile based side scroller is moving slower than the player [closed]

In my 2D tile based side scroller, I want a camera that scrolls in the x direction, but not in the y direction. The world is separated into three zones; one on the left and one on the right where the ...
eirik-ff's user avatar
  • 101
1 vote
3 answers
4k views

LibGDX - Best way of scrolling background

I'm new to LibGDX and i'm trying to implement a screen where i have a guy running and the ground under him scrolling to give impression he is really running in a ...
MineConsulting SRL's user avatar
1 vote
1 answer
729 views

Is sidescroller movement just offsetting the background?, MonoGame/XNA

When I make a sidescroller game and what to move my character do I just offset the background, or is there another better way?
user avatar
0 votes
2 answers
2k views

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

I've come across something unusual with my HTC One M8, I'm not sure if it's phone specific, a bug in unity, or just poor setup on my part. I've been using Unity Remote 4 to test in realtime, and it's ...
XtrmJosh's user avatar
  • 123
0 votes
1 answer
2k views

How do I center the view around specific coordinates in SFML

I want to use sf::View in SFML in order to change the position of the view, such that the player sprite is always in the center of the screen. Thus I want to write a function which allows me to input ...
Yaxlat's user avatar
  • 13