(@griffpatch's writing:) 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.
idk what I did here, other than slow down the project 1000x more, change up some costumes, customize some variables and other stuff like that. food and water don't do anything, so don't worry about it. :) You can't die. Yep, your invincible. idk. i was bored and found myself online the one time I will be on in the next few months so... idk. ta-da, super slow tile game that is literally @griffpatch's project tweaked slightly. sorry about bad graphics, haven't done this in a while. thanks for reading my ultra-high boring description ohhh yeah.... thanks @griffpatch probably a little important.... lol.... ahh idk. I'm a teen now. not using scratch anymore, I've moved on to Java. prob won't be on here again any time soon.... so... uh... bye I guess. lol scratch was kinda a big part of my inspiration for programming, so i feel like I should do this long and drawn out goodbye, but i honestly don't have time to do that, so uh yeah. bye I guess lol sorry for bad and confusing description (not proof reading to the dismay of my English teacher) bye adios okayyy uh bye for real this time byeeee