This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-10-11 10:11:08

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

demo for programers.. scrolling and tile stamping

here


Use arrow keys to walk, wheeee... the point? Using this method, you can create SCRATCH games with huge maps in spite of the file size limit.

and for the more in-depth explanation...

It looks like one scrolling map/image but it is actually 9 small maps that scroll together. I made them small since this is a demo, an actual version will use over 100 stamping/scrolling sprites but is fast, even without turbo mode! It currently only uses 3 small (32x32) sprites to do the map. In a real game, you would add grass, dirt, flora, castle bricks, etc.

I have done tile stamping before but this new scrolling version will link all the maps into one, huge continuous game map. Maps currently have 2 layers.. bottom (the ground) and top (the rocks or whatever). This will let let you create huge game/world maps when used for a real game since the maps are stored as list data rather than huge, memory intensive images.

For now, the player sprite uses color sensing and a separate feeler sprite to check for collisions with the black border around the rocks. This also allows the player sprite's head to pass over objects blocking it from above/the North.

All code by me

Last edited by Locomule (2011-10-11 10:15:25)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer