ScratchData LogoScratchData
Back to akinyemi08's profile

Tile Scrolling Engine v1.7 /w temperatures

AKakinyemi08•Created October 5, 2018
Tile Scrolling Engine v1.7 /w temperatures
0
0
11 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 snow 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

I added temperatures. Press b to change the season. Press s to change the day speed. About: There are 3 things that change the temperature, the height of the player, the season, and the time. I also added a random integer for the temperature so it isn't too "predictable".

Project Details

Project ID250677972
CreatedOctober 5, 2018
Last ModifiedDecember 16, 2018
SharedOctober 7, 2018
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root