A scrolling platformer

By the end you will have a level three screens wide, a hero the screen follows, coins to collect and a flag at the end.

What you need

Everything here is in Simple mode.

Hero+ Add object โ†’ Library โ†’ Hero. It walks and jumps already.
GroundGrass tile from the library. It is solid.
LedgesWooden Ledge tiles. You can jump up through them.
Coins and FlagCoin and Flag from the library.
ScoreScore from New.
SoundsCoin and Win.
NutHouse
The level settings with Bigger than the screen ticked, and The screen follows set to Hero

Build it

  1. Click empty space in the level. Set Width to 1920 and Height to 480.
  2. Tick Bigger than the screen (it scrolls). Set Screen width 640 and Screen height 480.
  3. Set The screen follows to Hero and Scroll to Only across. A dashed yellow box labelled Screen shows what the player sees.
  4. Pick Sunny hills as the Background picture. Set The picture to Repeats along (good for scrolling).
  5. Add one Grass tile at the bottom-left. Click Make gridโ€ฆ: Columns 60, Rows 1, Gap 0. That is a floor the whole way.
  6. Add ledges, coins and the Flag along the level. Press Fit to see all of it. Put the Hero at the left.
  7. Events tab โ†’ + New event โ†’ Hero โ†’ Collides with another object โ†’ Coin. Do Destroy Coin, Add to score 10, play Coin.
  8. + New event โ†’ Hero โ†’ Collides with another object โ†’ Flag. Click + andโ€ฆ โ†’ Coin โ†’ There are none of these left. Do Next level and play Win.
  9. + New event โ†’ Hero โ†’ Leaves play area, tick Bottom โ†’ Set position back to the start, Subtract lives 1.
  10. Press โ–ถ Play level and run right. The screen follows.
WhenHero collides with Coin
DoDestroy CoinAdd 10 to scorePlay sound Coin
WhenHero collides with FlagThere are no Coin objects left
DoNext levelPlay sound Win
WhenHero leaves play area at the bottom
DoSet position of Hero to (48, 420)Subtract 1 from lives

Make it yours

  • Scroll up and down too: set Height to 960 and Scroll to Across and up/down.
  • Add Slime enemies. Hero collides with Slime + Is falling โ†’ Destroy Slime. Add a second rule with NOT Is falling โ†’ lose a life.
  • Music: Start of level โ†’ Play music (loops) โ†’ Adventure tune.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.