A simple auto scroller example using GB Studio 3.1 which features a screen size moving boss using the window/overlay layer.

Key Features

  • Automatically scrolls left
  • Screen sized boss with randomized movements

Summary

The primary threat of the level is a screen sized drill that instantly kills the player if they collide. The player must avoid random thrust forward attacks as the screen automatically scrolls left. The boss is always visible during play with a dynamic position due thrust attacks. The boss is created using the Overlay Window Layer and a sprite with largest possible collision boundary box (128 x 128px). The sprite's location is synchronized with the overlay windows movenment, the difficultly being that the overlay window and the sprite coordinates are relative to the screen and camera respectively. Pinned sprite's cannot be used to overcome disparity as they lack the "On Collision" event, instead you'll need calculate the overlay window position as if is camera relative. Once the calculated overlay position is known, set the sprite to that location. This needs to be done every frame to insure that the boss' collision boundary box is in the correct position.

Written tutorial with screen shots, detailled descriptions and source code

https://github.com/phinioxGlade/gbstudio-auto-scroller

StatusPrototype
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorphinioxGlade
TagsGame Boy, gbstudio, Tutorial

Download

Download
GBStudio 3.1 - Auto-Scroller Tutorial V1.0 - Gameboy ROM 128 kB

Install instructions

The Gameboy ROM can be played on a Gameboy, Gameboy Pocket, Gameboy Color, Gamebody Advane and Gameboy Advance SP with a flashcart

Development log

Leave a comment

Log in with itch.io to leave a comment.