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

learn more… | top users | synonyms (1)

0
votes
2answers
76 views

Mobile Game Development: Supporting Multiple Screen Resolution

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 bigger to ...
3
votes
1answer
62 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 ...
0
votes
0answers
86 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
1answer
76 views

Pause on scrolling backgrounds

I have a typical parallax backgrounds. They are scrolling by public float Speed=0f; void Update () { renderer.material.mainTextureOffset = new Vector2 (Time.time*Speed,0); } I have a ...
2
votes
0answers
145 views

How to do z-index parallax in 2D game in unity3d

I am new to unity3d and want to develop a simple game like crazy cabie. For which i have to implement a z-index parallax for moving sprites towards the player and generating new sprite a farthest z ...
6
votes
1answer
669 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 would I display multiple images ...
1
vote
0answers
172 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 ParallaxCamera uses Matrix4s to achieve a ...
0
votes
0answers
23 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. ...
5
votes
2answers
328 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
0answers
122 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
1answer
319 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
1answer
367 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: http://stackoverflow.com/a/18962019/270197. Layers back in the scene move with slower ...
1
vote
1answer
284 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
0answers
810 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
1answer
679 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 ...
0
votes
1answer
324 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: _backgroundNode = ...
1
vote
1answer
177 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
2answers
387 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
1answer
2k 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
0answers
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
1answer
1k 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
2answers
708 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 ...
1
vote
1answer
555 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
3answers
1k 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
1answer
417 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
1answer
251 views

Scrolling background stops after awhile? [closed]

Can anyone tell me where my maths is wrong please, it stops scrolling after awhile. if (background.position.y < background2.position.y) { background.position = ccp(background.contentSize.width ...
1
vote
1answer
676 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
2answers
1k 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 ...
3
votes
1answer
671 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
1answer
629 views

How can I scroll sprites when swiping using Cocos2D?

I'm adding 3 sprites (layers) to CCParallaxNode: BGLayer = [CCSprite spriteWithFile:@"Layer.png"]; [_backgroundNode addChild:BGLayer z:2 parallaxRatio:layer1Speed ...
3
votes
3answers
2k 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 ...
1
vote
4answers
537 views

How can I support scrolling when using batched rendering for my tiles?

I have tiled map 100*75 and tiles are 32*32 pixel.I want to use batching for performance .I don't figure it out , because of my game needs scrolling and every frame i draw 22*16 tiles (my screen is ...
1
vote
1answer
592 views

Dynamic bodies with Parallax Scrolling

I have an object that has a dynamic body. Currently, I'm setting it's position to follow the sprite when the parallax layer move. After a certain event, the object suppose to fall to the ground. ...
2
votes
2answers
1k views

Best method for 2 layer tile based map scrolling

What is the best general approach to implement scrolling for a 2D tile based game? I need to scroll the map with a constant speed, lets say 2 pixels every frame (like in a top down shooter). The ...
3
votes
1answer
534 views

Creating the “game space” for a 2D game

How does one setup the game space for a game so that obstacles can be spawned? Examples would be ice climber or the iphone doodle jump. Tile maps are limited in size and would need to change often if ...
3
votes
3answers
1k views

Generating background tiles for a side-scroller with variable player speed

I'm currently working on a side-scroller which lets the player alter their speed and I wondered how should I properly generate and control background tiles for such a kind o game. I'm using Flixel but ...
4
votes
1answer
4k views

How to create endless scrolling landscape using coco2d's CCParallaxNode

I created a horizontally scrolling landscape using CCParallaxNode. However it does not seem to support endless scrolling in one direction. As soon as the first image "ends" the background shines ...
15
votes
5answers
4k views

How can I implement parallax scrolling into my 2D game?

Let's say I have three layers: a foreground, an intermediate-ground and a background. What is involved in using these three layers to create parallax scrolling?