Parallax scrolling

2

Attached Files

The following files have been attached to this tutorial:

.capx

parallax-tutorial.capx

Download now 3.03 MB

Stats

15,912 visits, 23,768 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 31 May, 2014. Last updated 19 Feb, 2019

When your travel in car, train or any vehicle you would have notices that far away objects move very slowly but, near objects move very fast.

Taking same principal in your scrolling game how can you implement that? Well there are many ways you can do it but, I will show little simple way very crude but at same time effective if you can do it right.

It’s call PARALLAX SCROLLING.

Create new projects and name it as you like

Now let’s create 5 layouts

1 Background and name it BG or whatever you like

2 Layers Near

3 Layers Middle

4 Layers Faraway

5 Layers Player

Now on layers 1 BG set Parallax to 100,100

Now on layers 2 near set Parallax to 10,100

Now on layers 3 Middle set Parallax to 40,100

Now on layers 4 Faraway set Parallax to 80,100

Now on layers 5 Player set Parallax to 100,100

On layer 1 BG create background picture of your choice and then you have to divide that picture in four parts like I have done. See CAPX

.CAPX

parallax-tutorial.capx

Download now 3.03 MB
  • 0 Comments

Want to leave a comment? Login or Register an account!