Flappy Birds Clone in 10 minutes

12

Index

Attached Files

The following files have been attached to this tutorial:

.rar

Stats

86,507 visits, 549,407 views

Tools

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 10 Feb, 2014. Last updated 19 Feb, 2019

Step 6

We now need to make the background scroll to give the effect the bird is flying to the right. Create a new event, "System" and under "General" select "Every tick". For the action, select "Pipe Bottom" and under "Size & Position" select "Set X". Type in "Pipebottom.X - 5". Add 3 more actions that do the same for "Pipetop" and both the background floor objects. This means that every tick, these objects will move to the left 5 pixels.

If you run the game now, you'll see the floor moving to the left but it eventually runs out! To fix this add another two events. Click "Add Event" and select the yellow tiled background. Click "Compare X" and enter "Less or equal to -560" (minus 560). For the action, set the yellow floors X to "0".

Do the same for the green floor object except the comparison should be for "Less or equal to -410".

Preview the game, the background should be scrolling infinitely if you keep in the layout!

  • 0 Comments

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