Discuss Scratch

olavored123
Scratcher
12 posts

Help with raycasting - How to make a bigger map

Hello, I've been following Griffpatch's tutorial about raycasting and I had a couple of problems here and there but I was able to fix most of them. Now, my question is not exactly a problem i've been facing like a bug or glitch, but more of an idea for an improvement of a project i'm making. Is there a way to make a bigger map? the tutorial made a map with the size of a scratch project screen (which is… 240x180? I think? I might be wrong.) but for the project i'm making i need a bigger map, maybe 4 times the size of that. Is there a way to do it?
froggy1The
Scratcher
6 posts

Help with raycasting - How to make a bigger map

Yes, go to https://scratch.mit.edu/projects/1227077355/ And use bottom sprite (do not click flag, there’s an area that breaks the game for some reason. ) btw it’s 180x250.
Com_engineer_Tom
Scratcher
58 posts

Help with raycasting - How to make a bigger map

olavored123 wrote:

Hello, I've been following Griffpatch's tutorial about raycasting and I had a couple of problems here and there but I was able to fix most of them. Now, my question is not exactly a problem i've been facing like a bug or glitch, but more of an idea for an improvement of a project i'm making. Is there a way to make a bigger map? the tutorial made a map with the size of a scratch project screen (which is… 240x180? I think? I might be wrong.) but for the project i'm making i need a bigger map, maybe 4 times the size of that. Is there a way to do it?
the scratch default stage size is 480x360.

All you need to do is to make the player and hitbox smaller, and decrease your movement values to create the effect of the stage being smaller.

Another idea is before the raycaster moves, set the size to 500. After the raycaster moves, set th size back to default

define raycast
...
repeat until <touching (stage v) ?>
set size to (700)
move (4) steps
set size to (100)
end
end
then you can make your stage bigger and the raycaster move offscreen. Do the same procedure with the player movement blocks.

Hope this helped
Com_engineer_Tom
Scratcher
58 posts

Help with raycasting - How to make a bigger map

froggy1The wrote:

Yes, go to https://scratch.mit.edu/projects/1227077355/ And use bottom sprite (do not click flag, there’s an area that breaks the game for some reason. ) btw it’s 180x250.
1. Don't advertise (unless that project helps the OP)
2. It's 480x360

Powered by DjangoBB