How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [side-scroller]

The tag has no usage guidance.

side-scroller
Filter by
Sorted by
Tagged with
24 votes
1 answer
14k views

How can I make an infinite side scrolling background in Phaserjs?

I'm using phaser.js to make a game and I cannot find any tutorials on how to make the background scroll infinitely. I'd like the background to tile/repeat sideways, and infinitely as the character ...
mage's user avatar
  • 626
14 votes
2 answers
23k views

2D side scrolling camera view in html5

I was wondering how I could go about making a camera-like view where I could scroll a level within a canvas element just like this: http://playbiolab.com/
Oni Enzeru's user avatar
6 votes
2 answers
5k views

How to prevent multiple AJAX calls when using JQuery scroll event handler during lazy-loading?

I load data into my DIV with AJAX using 3 different functions. I am trying to prevent multiple AJAX calls when the browser scroller remains at the bottom of the DIV that I am lazy-loading data into. ...
HiDd3N's user avatar
  • 494
3 votes
1 answer
508 views

Get slerp to work just as LookAt(x,Vector3.Right) does

Ive been working over a sidescroller shooter game. Ive got my sidescroller shooter character to look around with these : chest.LookAt(mousepos, Vector3.right); & chest.LookAt(mousepos, Vector3....
Ben Rokah's user avatar
3 votes
3 answers
2k views

Continuous Touch/Moving Swift & SpriteKit

I am creating a Side Scroller Mario-like game in Swift and SpriteKit. I am currently moving the player yet you have to keep clicking and then it moves. What I am wishing is if you hold it it will ...
ScarletStreak's user avatar
3 votes
2 answers
2k views

how to ensure only sprites visible in the viewport are ever drawn

I am attempting to create a 2d scrolling XNA game as a learning exercise, but have run into some issues with the scrolling background. I am loading a level from a text file, parsing through to create ...
Pectus Excavatum's user avatar
2 votes
3 answers
1k views

Side scrolling a tile map, Map getting messed up

I succesfully generate my tile map and it works but when i want to scroll it the top line of tiles is moving and all the tiles is dragged of screen.. Its hard to explain, Imagine this is the tiles: X ...
User's user avatar
  • 1,478
2 votes
1 answer
478 views

Make a Defender-like "world" with SKTileMapNode

Defender is an ancient game that presents a virtual world, a horizontal scroller, in a loop. The camera view only portrays a portion of the world at any given time. The player can fly in both ...
Confused's user avatar
  • 6,158
2 votes
1 answer
951 views

Best practice for moving characters in a game using JavaFX?

I'm making a simple sidescrolling game in JavaFX, and have done a bit of research. However, before I get really started, I wanted to make sure I was using the conventional way of creating a game. I ...
user3517454's user avatar
2 votes
2 answers
4k views

How to only draw tiles (sprites) visible on the screen

I am trying to create a simple 2d scrolling game as a learning exercise in monogame (XNA). Currently I load tile information from a text file, creating an array (tiles[,]) with a tile object storing ...
Pectus Excavatum's user avatar
2 votes
0 answers
373 views

Automatically scrolling to my player using p5.js, but it does not work

This is what I've tried, but it just doesn't work in p5.js I basically need a line that "renders only the visible portion of the game area on canvas" Essentially, I need help fixing my ...
user avatar
2 votes
0 answers
90 views

Disabling side-scrolling works on desktop but not mobile

I'm applying the following CSS to successfully disable side-scrolling when viewing a site via desktop: html, body { max-width: 100% !important; overflow-x: hidden !important; } ...
mbeachey's user avatar
2 votes
1 answer
1k views

JavaFX Side-Scrolling game: How to generate interactive objects in "extended" scene

So I am trying to create a 2D side-scrolling javafx game. So far I used AnimationTimer to control movement of my character. But now I am kind of stuck trying to make the stage move. I can move non-...
user3271166's user avatar
2 votes
1 answer
119 views

Fast way to find a number in an array of objects in JavaScript

I need to check whether or not an object is in distance to show it to the screen ( its a side scroller video game ) So far i have this: for ( var i=0; i < Coins.length; i++ ) { var obj = ...
user3552137's user avatar
2 votes
1 answer
9k views

How to create a simple side scroller game [closed]

I'm still pretty new to game programming and any tutorial that I have worked with stuck to only games with the initial screen. I want to start creating my own games but there are a few things that I ...
D34thSt4lker's user avatar
1 vote
2 answers
680 views

Procedural generated 2D caves/dungeons for sidescroller like game

I would like to proceduraly generate 2D caves. I already tried out using some 1D simplex noise to determine the terrain of the floor, which is basically everything you can change in a sidescroller, ...
veqa's user avatar
  • 57
1 vote
1 answer
3k views

Is React Native suitable for building an OpenGL-accelerated 2D-game?

Say I wanted to build something like a 2D side-scroller game. Would React Native be suitable performance-wise? E.g., can I use OpenGL-acceleration for it? Or would it probably be slower than just ...
Wieger's user avatar
  • 663
1 vote
2 answers
1k views

How can I make a 2D side scroller game for Mobile using Unity

Do I need to spawn the world by making prefabs or just make a very long platform? Sorry, I'm a complete beginner and tried making a long platform because if I do a random spawn it wouldn't be like ...
Jeffrey R. Garcia's user avatar
1 vote
1 answer
339 views

Cocos2d: thread error when trying to add background music

Hello I am making a cocos2d side scroller. I am trying to add a background audio file. I am using SimpleAudioEngine. This is the code: [[SimpleAudioEngine sharedEngine]playBackgroundMusic:@"...
PoKoBros's user avatar
  • 711
1 vote
3 answers
4k views

Sidescrolling with HTML5 canvas

I have a canvas with the following size: 500x200. Inside this canvas i'm drawing some number of blocks (actually - table cells). Information about how much blocks i should draw i'm getting via AJAX, ...
Adoshev's user avatar
  • 13
1 vote
1 answer
355 views

Side scroller enemy spawn system [closed]

I'm a beginner to XNA coding and am trying to make a side scroller game similar to that of Super Mario Bros. I have got player movement and enemy movement up however I am having trouble making more ...
FLAVAred's user avatar
1 vote
1 answer
999 views

iPhone iOS is there an open source side scrolling game I can take a look at?

I'm thinking of building a simple side scrolling game where an airplane is flying forward at constant speed and the user controls up and down to avoid obstacles. Since I have 0 game development ...
Alex Stone's user avatar
1 vote
1 answer
1k views

Unity: Changing direction character faces when using InputManager(side scroller)

I'm creating a simple side scroller with a couple people using Unity and am definitely a beginner. The character being used is 3D and runs forward well, but when running backwards he still faces ...
eg3's user avatar
  • 21
1 vote
2 answers
4k views

Side Scrolling Background for 2d XNA game, Help desperately needed

I am trying to make a simple side scrolling game in XNA (monogame) as a learning exercise, but I am having some issues getting my head around scrolling the level. Basically, I am trying to make a ...
Pectus Excavatum's user avatar
1 vote
1 answer
594 views

Object spawning and deleting

I am currently making a simple side-scroller. In unity. I am looking for a way to spawn objects before they enter camera, and remove them after they have passed the camera. All this will happn in the ...
Eyrik's user avatar
  • 127
1 vote
2 answers
2k views

Side Scroller in C++

I'm looking at creating a basic side-scroller using OpenGL and C++, however I'm having trouble tackling a few basic conceptual issues, namely: Dividing the window into easy "blocks" (some sort of ...
user avatar
1 vote
0 answers
177 views

How to go about enabling side scrolling in Wagtail admin site

I have been tackling a particular design issue with Wagtail admin. Thus far I have not found a way to enable side scrolling admin listing pages. I want to extend my user model with more data about the ...
Fernando Soares's user avatar
1 vote
0 answers
172 views

Scrolling background in Processing with Fisica/Box2D

I'm trying to make a scrolling world with Fisica (port of JBox2D) and Processing 3. This code almost works, it scrolls correctly etc., but when I make this.player jump with this.player.addImpulse(0, -...
Jachdich's user avatar
  • 792
1 vote
0 answers
53 views

Collision detection does not seem to work

I am currently working on a school project where I am creating a side scrolling game. I am at the stage where I require collision detection. I would like my character sprite's visibility to be set to ...
JTsusan's user avatar
  • 11
1 vote
0 answers
30 views

Java Sidescroller doesn't look fluent

I'm currently programming a side-scroller on Java, but I noticed that the moving background simply doesn't look fluent, but stuttering. I implemented the movement of the background by offsetting it ...
DevEmil's user avatar
  • 27
1 vote
0 answers
173 views

How to have endless scrolling ground at an angle with Swift and Spritekit?

I am trying to implement an endless scrolling ground with Swift and Spritekit. I managed to get the scrolling ground to work if the ground is a flat surface. But I want the ground to be on a decline ...
5AMWE5T's user avatar
  • 841
1 vote
0 answers
1k views

How do i run a .jar file on a website?

I recently made a 2D sidescroller and i now want it to be on a website. The game runs via Canvas or JFrame either one. Prob Canvas hence the code. public class Game extends Canvas implements ...
user3603698's user avatar
1 vote
0 answers
223 views

SKPhysicsJointPin in a side scrolling Swift SpriteKit game

I'm trying to develop a side scrolling game in SpriteKit. My problem is the following: I'm trying to add a rope to my game, but it breaks when I start the game. When I add this rope to a non-...
Eduard's user avatar
  • 620
1 vote
2 answers
611 views

Issue with resetting boolean and int value within update() method

In my game, I am using a boolean variable called onScreen and it is set to true everytime the game starts. I also have an int variable called onScreenTime which is set to 180 when game starts. ...
archangel's user avatar
  • 110
1 vote
1 answer
465 views

LWJGL: Applying a "curve" to a landscape

I am interested in creating a shader effect similar to that of the game (don't shoot me for using this example) Animal Crossing. As you move forward and backward along the terrain, the world "curves" ...
CoderTheTyler's user avatar
1 vote
0 answers
206 views

Android: Sidescrolling using canvas.translate

I'm developing a 2D sidescroller game, but I don't really know how to implement the sidescrolling feature. I've heard, that using canvas.translate everytime the hero moves is one possibility, but ...
Carandiru's user avatar
1 vote
0 answers
340 views

Java Tiled-Image Scrolling

This is going to sound similar to my other post but trust me it's not the same. So I decided to take some peoples advice on how to scroll an arraylist.I have an arraylist that takes the Block class. ...
36redsoxfan's user avatar
0 votes
7 answers
7k views

How do I make a side-scrolling iPhone app?

I am working on a side-scrolling iPhone app, and I have every resource, except the actual side scrolling part! How do I make an app so that it side-scrolls? To be more specific, I want the view of ...
Flafla2's user avatar
  • 691
0 votes
2 answers
436 views

What tile storage structure to use on a side scroller?

I am developing a 2d side scroller in slick2d which i would like to be tile based, but I don't really know how to store the tiles. My game has infinite dynamicly generated terrain and is interactable ...
Philipp's user avatar
  • 896
0 votes
1 answer
768 views

Sidescrolling Box2D Game

When creating Box2D sidescroller game, is it performance friendly to scroll through every object and move it (for example by x axis) as it does in the following code snap: for(Body b: bodies) { b....
Vilda's user avatar
  • 1,745
0 votes
1 answer
2k views

Looping sprite scrolling background

I'm new in WebGL and I decided to try the Phaser.js library. I'm having some trouble with background scrolling (games like runner and side scrollers). I've seen how it works in PIXI.js, but I cant do ...
Rincew1nd's user avatar
  • 196
0 votes
1 answer
1k views

How to put the player in the center of a libgGDX camera

I just recently started using libGDX to make games, and I am trying to implement an orthographic camera to fallow the player around when he moves (making a 2D side scroller). For some reason that I ...
JeremeiBou's user avatar
0 votes
1 answer
1k views

2D Side Scrolling HTML5 Game [closed]

I am trying to make a side scrolling game in html5. I am wondering how i can have lets say a 500px by 500px viewing are but the background is about 500px high by 2000px wide. When the viewing area ...
Anzwur's user avatar
  • 613
0 votes
1 answer
44 views

How to scroll inner page of Facebook Meta Ads library?

I'm trying to scroll inner page of Facebook Meta Ads Library using python selenium, As i have tried most of method that are available on internet Such as ele =driver.find_elements(By.XPATH, '//div[@...
Adnan Zafar's user avatar
0 votes
2 answers
2k views

How to smooth a scrolling object in Unity 3D

all. I am making a mobile game in Unity, and it's a side-scroller. I want a platform to move across the screen until it gets off-screen. Then, I will set its position back to the starting point, so ...
vinny_711's user avatar
0 votes
1 answer
897 views

Monogame Basic Collision Detection Fails to Work

I have a weird issue when it comes to detecting basic collision and frankly, I can't figure out why. So my movement for my player is in my Player.cs Class and in this class contains a Update() method ...
BlazeXenon's user avatar
0 votes
1 answer
98 views

Horizontal tiling background

I'm coding for a game and want the background to repeat itself. xOffset = (int) (camera.getX() % WIDTH); g.drawImage(bgInv, xOffset - WIDTH, 0, WIDTH, HEIGHT, null); g.translate(xOffset, 0); g....
David Gomes's user avatar
0 votes
1 answer
2k views

How Do I make a <div> slide into view when a button is clicked?

I have a page that has a background wallpaper with 100% width and its 100vh height. The page has 3 buttons on it and one of the buttons is located at the extreme left side of the screen. When I click ...
Levin's user avatar
  • 75
0 votes
1 answer
238 views

The camera in a side-scrolling tile based game in moving slower than the character

In my side scroller game, when the character is moving past a specific zone (on the left side of the world) the camera should start moving until the character is past the next zone (on the right side ...
eirik-ff's user avatar
  • 163
0 votes
1 answer
200 views

Creating a vertical side-scroller, having trouble with arraylists and logic (Java)

I am in my second year of programming, and only know Java. However for my class, we have to create a vertical side-scroller. My set-up is that I have an ArrayList for enemy ships, and an ArrayList for ...
archangel's user avatar
  • 110