Document stub.png This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (June 2018)
DocumentInQuestion.png It has been suggested that this page's contents be merged with the page Scrolling Platformer Tutorial. You can discuss this on the page's talk page. (October 2018)

A scroller is a type of project that makes the background "scroll", or move out of the screen to make it feel like the player is moving.

Note Note: This tutorial specifically deals only with x scrolling, but the concepts can be used for y scrolling.

Preperation

Sprites

3 sprites are needed for this scrolling game. Although you can use 1 sprite for the scrolling, the player and the level creator are used in this example.

  • Level creator: The level creator will create and render the level.
  • Game loop: The Game loop will start and manage the program.
  • The Player: The player is the sprite you will control.

Costumes

Only the player and the Level Creator have costumes. Make sure that the costumes of the level creator line up correctly.

Programming

Game loop

when flag clicked
broadcast [Setup v] and wait
broadcast [Begin Game Loop v]

Next in the Setup broadcast:

when I receive [Setup v]