ScratchData LogoScratchData
Back to RD4UO's profile

among us Scrolling Engine v1.7 remix

RDRD4UO•Created July 7, 2021
among us Scrolling Engine v1.7 remix
1
1
4 views
View on Scratch

Instructions

Here is a sample project showing how I go about creating a scrolling tile based game. The scripts are well commented so please take a look through. The the rain drops and the two enemy types are separate sprites that can be dropped in or deleted without affecting the game. The Level is a 2d grid of tiles stored in a list of numbers where each number represents a costume number from the "Tiles" sprite. Enough clones of the tiles sprite are created to completely fill the game play window. These are scrolled around as SCROLL_X & SCROLL_Y are changed, and if they move fully of one side of the window, they are instantly moved to the opposite side to fill the gap and make the scrolling seamless. It is only at this point that the costume is changed which greatly reduces lag. The rain effect has been added by the last sprite in the project to demonstrate how you can create objects that interact with the level and that hook into the same 'animate' broadcast as the level itself. Simply delete the rain sprite and it goes away. Next I have added a laser gun effect. This is again done in a separate sprite so it can just be deleted and things will keep on working just fine.

Description

grifftpatch

Project Details

Project ID551465839
CreatedJuly 7, 2021
Last ModifiedJuly 7, 2021
SharedJuly 7, 2021
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root