Questions tagged [parallax-scrolling]
An illusion technique for scrolling backgrounds which allows for a finer simulation of depth in 2D graphics.
57
questions
1
vote
0
answers
70
views
Odd behaviour from parallax
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 ...
0
votes
1
answer
54
views
How do I ignore 1 axis on vector 3 reset to 0,0,0?
coding noob 3D artist here. I'm trying to create a scrolling parallax background with 3D objects, I have it set so that when it scrolls off screen, it resets it's position off screen on the opposite ...
0
votes
1
answer
400
views
How can I implement an infinite parallax background like in Slither.io?
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 ...
0
votes
1
answer
2k
views
Changing texture offset in unity by script
I am trying to change texture offset in a material by a script to create a parallax effect, but it doesn't move a bit no matter what I am trying. Any tips for this case? Or am I missing something?
0
votes
2
answers
390
views
Move Camera is an order so that the background doesn't move fast
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 ...
0
votes
0
answers
92
views
Make zoomable Camera and Environment follow player smoothly
I am making a 2D side-scroller racing game. The Player is a car that moves on a 2D terrain already created. The Camera follows the Player. I also wanted to created more depth by making the background ...
2
votes
2
answers
704
views
2D Parallax scrolling through GLSL shader
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 ...
0
votes
2
answers
1k
views
How can I make the background of my game move following my player?
I'm starting with Libgdx and I would like to make my ParallaxBackground move following my player. I am using a TiledMap along with Scene2d, and have the camera follow the sprite of my player. I'm ...
1
vote
0
answers
919
views
How to reproduce this (parallax?) effect?
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, ...
0
votes
1
answer
332
views
Unity TopDown parallax effect only working in three of four directions
I'm a hobbyist at programming so I'm sure I'm missing something very simple:
Basically I have a script that has a method for repositioning a 3x3 grid of tiles every time the player goes out of the ...
2
votes
1
answer
321
views
How to get smooth parallax in a wrap-around world
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 ...
-1
votes
1
answer
2k
views
How to make a Infinite Verticle Scrolling Background in Pygame
Is there anyone who knows how to create an infinite verticle scrolling background in pygame?
Your help would be much appreciated, thanks in advance!
0
votes
1
answer
310
views
What is differential scrolling?
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....
0
votes
2
answers
6k
views
Gyroscope Parallax Effect In Unity
I want to make a parallax effect in Unity 3D with gyroscope like the one on this site:
http://matthew.wagerfield.com/parallax/
I found an asset, but it is too expensive.
So I need a script which I ...
0
votes
0
answers
102
views
Scrolling Background - smoothest way
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 ...
1
vote
0
answers
371
views
2D Parallax Scrolling
I'm trying to implement parallax scrolling and have a partially working equation (from a book I've read) but it doesn't fully align to the screen. I also want to stick purely to integer maths. I've ...
1
vote
3
answers
5k
views
2D Infinite Runner : how to manage background layers?
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.
...
2
votes
1
answer
2k
views
How to make a scrolling background in Delphi with FireMonkey?
I'm making a scrolling background game alike classic Mario 2D games.
How do I make a scrolling background in Delphi XE7 using FireMonkey?
1
vote
1
answer
262
views
2d parallax edges
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 ...
0
votes
2
answers
1k
views
Mobile Game Development: Supporting Multiple Screen Resolution for iOS
Questions
When designing the graphics of the game (e.g. for iPhone): What is the resolution I should base it upon? Is it the smaller resolution (iPhone4 screen resolution) so that I could scale it ...
3
votes
1
answer
1k
views
Parallax effect for layers in Unity2D
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 ...
1
vote
0
answers
391
views
Layers with parallax in a game with zoom out by a transformation matrix
I'm trying to implement a parallax rendering to my multi layered backgrounds. It's a classic 2d fighting game like The King of Fighters and Street Fighter.
It may have a stage composed by 5 layers.
...
1
vote
1
answer
869
views
Pause on scrolling backgrounds
I have a typical parallax backgrounds. They are scrolling by
...
2
votes
0
answers
936
views
How do I do 2D z-index parallax in Unity3d? [closed]
I am new to unity3d and want to develop a simple game like crazy cabie. I have to implement a z-index parallax for moving sprites towards the player and generating new sprite at the farthest z-index.
...
6
votes
1
answer
2k
views
How do I make a scrolling background out of a sequence of images?
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 ...
1
vote
0
answers
384
views
How should matrix-based Parallax Scrolling work?
The question is at the end, as it requires a bit of context.
I'm not sure if my understanding, my code, or LibGDX's ParallaxCamera is wrong.
LibGDX's ...
0
votes
0
answers
32
views
libgdx : Scrolling background from spritesheet causes lag when sprite is repositioned... am I doing something wrong? [duplicate]
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.
...
6
votes
2
answers
595
views
How can I optimize a parallax effect consisting of multiple transparent layers?
I have a parallax effect in MonoGame consisting of multiple semi-transparent layers of textures. The effect is simple, but rendering multiple transparent layers on top of each other is rather slow. ...
2
votes
0
answers
188
views
Unproject considering parallax depth
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?
...
2
votes
1
answer
763
views
Fine-tuning parallaxing objects in 2D games
I'm making a 2D platformer game and I'm having a hard time figuring out how to fine-tune parallaxing objects in-game quickly enough. Problem is I don't even know how to make it faster, so I'm ...
0
votes
1
answer
560
views
Trouble with a modified parallax scrolling concept
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 ...
1
vote
1
answer
651
views
Approaches to 2D Parallax
In a 2D scrolling platformer, what is the most efficient way or knowing which things with parallax depth should be drawn?
The approach below describes trying to know which things are nearby so they ...
1
vote
0
answers
2k
views
Parallax Scrolling Road-2D [duplicate]
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 ...
1
vote
1
answer
2k
views
Parallax scrolling with 2D camera [duplicate]
I'm developing a 2D Platform game, I have a 2D camera, some backgrounds, and everything is working good. Now I want to implement parallax scrolling to give the illusion of depth in my game, but i can'...
0
votes
1
answer
633
views
How to get position of CCSprite added to CCParallaxNode?
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:
...
1
vote
1
answer
309
views
Gap in parallaxing background loop
The bug here is that my background kind of offset a bit itself from where it should draw and so I have this line. I have some troubles understanding why I get this bug when I set a speed that is ...
2
votes
2
answers
805
views
Parallax background positions when jumping
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 ...
4
votes
1
answer
3k
views
How do I implement an AutoParallax Background in AndEngine GLES1?
I'm using AndEngine GLES1. In my game, I use AnalogOnScreenControl to move a sprite and when it moves vertically, the background image also moves vertically. I want to do something like this: that is ...
2
votes
0
answers
28
views
How do I create a scrollableparallax background in AndEngine GLES1 [duplicate]
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 ...
2
votes
1
answer
2k
views
Showing Parallax entity and AutoParallax entity on same scene in AndEngine
How do I create both a parallax background and an autoparallax background in the same scene using andengine?
The problem is, I want one entity to move at a constant speed regardless of the camera's ...
9
votes
2
answers
1k
views
How do I visualize parallax layers in a level editor?
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 ...
2
votes
1
answer
2k
views
How do I make camera follow the player within some bounds?
I am creating a simple ambient/explorer platformer. Because I want the player to only be able to see a new area once they have reached it, I decided to split up the world in rooms.
To not make things ...
5
votes
3
answers
2k
views
How should I implement parallax scrolling with pan and zoom in HTML5?
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 ...
1
vote
0
answers
717
views
To stop Spite animation scrolling along the background in openGL ES
After using the endless road algorithm as described here, I also implemented the scrolling of walls along with it.
I have the walk animation of the person which is stationed at the center of the ...
0
votes
1
answer
301
views
Scrolling background stops after awhile? [closed]
Can anyone tell me where my maths is wrong please, it stops scrolling after awhile.
...
2
votes
1
answer
1k
views
Parallax Background Size
If I have three scrolling/continuous parallax backgrounds, what should be the ideal size (width/height) of the background images assuming I am going to support all devices including the new iPad?
...
-2
votes
2
answers
2k
views
Road parallax background
I am a beginner in game development. I want to create a parallax background that merges at the front and expands at the bottom. I'm sure there is a way to do this, but I'm missing something. My ...
4
votes
1
answer
835
views
Parallax Scrolling - Layers not preserving their relational positions
I've created a little 2D game engine with parallax scrolling and something has been bugging me for some time.
Layers / objects set at a different depths / z orders don't preserve their position ...
1
vote
1
answer
710
views
How can I scroll sprites when swiping using Cocos2D?
I'm adding 3 sprites (layers) to CCParallaxNode:
...
4
votes
3
answers
3k
views
Question About An Implementation Of Parallax Scrolling In C++/SDL/OpenGL
I been working in a project with a team for a Software Engineering class and we think that using the parallax scrolling will help our game to look really nice but we are not really sure if our idea ...