Skip to main content

Questions tagged [parallax-scrolling]

An illusion technique for scrolling backgrounds which allows for a finer simulation of depth in 2D graphics.

Filter by
Sorted by
Tagged with
2 votes
2 answers
141 views

everyone. I am working on a game that relies pretty substantially on "faking" 3D by using different parallaxing and polygonal transform techniques. In a current example, I am working on a ...
Peanut's user avatar
  • 21
0 votes
1 answer
253 views

What I am trying to accomplish: I want to add a parallax effect to the background of my game. I am working in 3D space with a perspective camera. Why: The reason that I want to add a parallax ...
PayasoPrince's user avatar
0 votes
2 answers
535 views

Implementing parallax scrolling is easy enough. This question is about improving its presentation. Hand-tuning some parallax scroll factors on multiple layers works, but parallax scrolling is meant to ...
Loospie's user avatar
  • 191
1 vote
0 answers
96 views

First of all I'm going to say that I'm not trying to blow my own trumpet or anything but usually I'm able to figure this stuff out on my own. But as for now I'm fully stumped. Maybe I'm having a mind ...
Infin8y Games's user avatar
0 votes
1 answer
598 views

I am trying to replicate the endless scrolling of slither.io but, I can't figure out how to implement it. Since the players can move to any direction and the background needs to be available during ...
Carlos's user avatar
  • 101
0 votes
2 answers
452 views

I have created a game where I am moving my player on a platform. The car moves fine on the platform and the camera follows the car as well. My problem is that I wanted my background to move slowly. I ...
Adnan Nazir's user avatar
2 votes
2 answers
981 views

I currently switched from LWJGL to LibGDX. In LWJGL I had a shader to do parallax scrolling by simply adding an offset to the texture coordinates and it worked fine, the texture repeated itself when ...
kalidali's user avatar
  • 333
1 vote
0 answers
1k views

I'm wondering how to imitate the camera movement like in the gif below. It´s from a Android game. This game for example (via GIPHY) Actually, I am not sure if this can be called a parallax effect, ...
chick3n0x07CC's user avatar
2 votes
1 answer
398 views

I'm working on a multiplayer space shooter a-la Star Control melee. The background of the game consists of several layers of tiles sprites making up a parallax effect of clouds and stars. The player ...
OpherV's user avatar
  • 655
0 votes
1 answer
425 views

I have seen the term a few times (e.g. here). I tried looking it up but did not find much information. I thought it would be something like parallax-scrolling, but I have seen suggestions otherwise (e....
ricab's user avatar
  • 111
0 votes
0 answers
116 views

I am trying to find the best solution for drawing a scrolling background in my app in Java. For now, I have two images and I move them by 1x and put it's thread to sleep for hmm, 5ms. The problem is ...
user avatar
1 vote
3 answers
5k views

First of all, sorry for this post, I guess this already has been discussed. I browsed stackexchange and the web but I couldn't seem to find a clear information for my case, with always mixed results. ...
rintkid's user avatar
  • 11
1 vote
1 answer
324 views

I'm writing a mini 2d game, the scene background is based on two images with parallax effect. I want the right edge of both images, finish at the same time matching the right edge of the canvas. But ...
rnrneverdies's user avatar
3 votes
1 answer
1k views

I have a simple game scene where i have put a number of images. I combined these images into layers (SortinLayer, to be specific). So now I have 3 layers. I have read a few tutorials, but in them was ...
bukka.wh's user avatar
  • 259
1 vote
1 answer
917 views

I have a typical parallax backgrounds. They are scrolling by ...
Stalli's user avatar
  • 113
6 votes
1 answer
2k views

I am new to AndEngine and trying to code a basic sidescroller game using the ParallaxLayer class from this example. (I followed the example and it works.) How ...
Renier's user avatar
  • 175
0 votes
0 answers
33 views

So, I use a sprite from a spritesheet to draw the background and repeat it. (I am drawing it twice) However, the moment that the background is re-positioned to make it look infinite, it causes a lag. ...
mars's user avatar
  • 115
2 votes
0 answers
207 views

How can I take screen coordinates (or alternatively world coordinates on the 'primary' parallax plane) and find out what world coordinates they translate into when taking parallax depth into account? ...
EngineerBetter_DJ's user avatar
0 votes
1 answer
606 views

I have a set of layers (each of them being a list of items) moving with different speeds as I mentioned here: https://stackoverflow.com/a/18962019/270197. Layers back in the scene move with slower ...
Gabor's user avatar
  • 107
1 vote
0 answers
2k views

I'm working on a racing game which will have a top view from the back camera. The image below displays a similar example. I am confused about how to achieve the movement of the road if parallax ...
Haider's user avatar
  • 155
0 votes
1 answer
659 views

I have a CCparallaxNodeExtras that scrolls infinite (following the space game tutorial). I added as a child a CCSprite made of other CCSprite, like this: ...
nosmirck's user avatar
  • 785
2 votes
2 answers
1k views

I am currently building my first Mobile game. The concept is pretty simple, it's a sideways scroller. I have implemented 5 layers to act as parallax scrolling, these are working quite well for ...
user499846's user avatar
2 votes
0 answers
32 views

In my game I want my background to move side by side as the player moves on screen in AndEngine. I moved my sprite using analogScreenControl. I am using AndEngine GLES1. i don't want to move my ...
Maan's user avatar
  • 307
9 votes
2 answers
1k views

I'm making a 2D game in Unity, but this would apply to any 2D game engine. If I implement multiplane parallax with orthographic cameras, it is difficult to lay out the background layer's sprites and ...
TenFour04's user avatar
  • 475
5 votes
3 answers
2k views

I'm writing a planetary motion simulator with the HTML5 canvas element and I want to put one or more layers of stars in the background. The user can click and drag the screen to navigate around the ...
Justin's user avatar
  • 225