Discuss Scratch

kay426
Scratcher
41 posts

How do you make a map bigger than the screen?

I want to make a large map where there is a lot of space.
How?
BereketY
Scratcher
500+ posts

How do you make a map bigger than the screen?

There are quite a few ways to do this. The one I know is by making another costume that is very small and increasing the size from that.

switch costume to [smallCostume v]
set size to (300) %
switch costume to [map v]

Now the map is bigger than the screen, but you will need a way to scroll through it.
ResExsention
New Scratcher
1000+ posts

How do you make a map bigger than the screen?

BereketY wrote:

There are quite a few ways to do this. The one I know is by making another costume that is very small and increasing the size from that.

switch costume to [smallCostume v]
set size to (300) %
switch costume to [map v]

Now the map is bigger than the screen, but you will need a way to scroll through it.

It would be possible to use:

change x by ()

and

change y by ()

to create the illusion of scrolling, even though in fact the background is moving, not the characters. It'd be pretty complicated though.

I know scrolling backgrounds involve the use of several costumes in the stage and a ton of code to make them redraw, however I'm unsure how to achieve such a thing.
thestickthing1
New Scratcher
1 post

How do you make a map bigger than the screen?

thanks for your help! I needed to know that too!
GlueGourmand
Scratcher
100+ posts

How do you make a map bigger than the screen?

You can set any sprite to any size, including larger than the screen and stage, by using this trick. Make sure that there is a blank costume for the sprite. Then…

SETCOSTUME to BLANK
CHANGESIZE by WHATEVER
SETCOSTUME to WHATEVERYOUWANTEDTOBEHUGEINTHEFIRSTPLACE

I've had this technique work for sprites which are 5000x500, and while there may be a limit to this techique, I haven't found it yet. You can move this giant sprite to simulate a level background if you like.

wiranew
Scratcher
5 posts

How do you make a map bigger than the screen?

i didn't think of that now i just need to continue making petscop
91093673
Scratcher
33 posts

How do you make a map bigger than the screen?

Please don't necropost just to comment.

Powered by DjangoBB