Discuss Scratch

dimmer_gamer
Scratcher
35 posts

Google maps

I really want to make a google maps like thing. So a sprite
Would be a map, and you could drag it around but it never runs out? Idk I just need a google maps like map code for a map sprite.
cIoudyness
Scratcher
500+ posts

Google maps

oh gosh
how about taking a 2d map of the world and splitting it up into tiles, then scrolling those, plus or minus zooming, plus or minus switching views

quality is either going to be terrible, or you'll need a lot of tiles

(sounds difficult)
amazingscratchcoder
Scratcher
100+ posts

Google maps

dimmer_gamer wrote:

I really want to make a google maps like thing. So a sprite
Would be a map, and you could drag it around but it never runs out? Idk I just need a google maps like map code for a map sprite.
horizontal, vertical scrolling, or both directions endless?
ScratchBoy179
Scratcher
91 posts

Google maps

#1 Keep in mind that max size of project is 10 MB lol
amazingscratchcoder
Scratcher
100+ posts

Google maps

ScratchBoy179 wrote:

#1 Keep in mind that max size of project is 10 MB lol
that won't be a concern, you can use clones, delete off screen clones, and only have like 3 costumes which make up the entire map going on and on. i don't mean to advertise, but here's a project which does that: https://scratch.mit.edu/projects/599882557/

Just delete the camera y variable, the background sprite, and play around with the value of the second multiplication (the 3 in 480*3) to suit the number of costumes you need. as to dragging, idk

Last edited by amazingscratchcoder (Dec. 28, 2021 15:00:51)

itzleo111
Scratcher
31 posts

Google maps

dimmer_gamer wrote:

I really want to make a google maps like thing. So a sprite
Would be a map, and you could drag it around but it never runs out? Idk I just need a google maps like map code for a map sprite.

It is possible to create a google maps project on scratch. It is not allowed because it is both impossible and unsafe because…

1. Google Maps is so large that it takes a long time to code
2. Scratch is aged 8-16 so a young child could comment their location
3. After they comment locations, Strangers could go visit the location


Last edited by itzleo111 (Dec. 29, 2021 20:32:55)

amazingscratchcoder
Scratcher
100+ posts

Google maps

itzleo111 wrote:

dimmer_gamer wrote:

I really want to make a google maps like thing. So a sprite
Would be a map, and you could drag it around but it never runs out? Idk I just need a google maps like map code for a map sprite.

It is possible to create a google maps project on scratch. It is not allowed because it is both impossible and unsafe because…

1. Google Maps is so large that it takes a long time to code
2. Scratch is aged 8-16 so a young child could comment their location
3. After they comment locations, Strangers could go visit the location


I think the op meant how to code the function of a never ending repeating, draggable, scrolling scene, and used google maps as an example, rather than actually emulating google maps.
cIoudyness
Scratcher
500+ posts

Google maps

itzleo111 wrote:

dimmer_gamer wrote:

I really want to make a google maps like thing. So a sprite
Would be a map, and you could drag it around but it never runs out? Idk I just need a google maps like map code for a map sprite.

It is possible to create a google maps project on scratch. It is not allowed because it is both impossible and unsafe because…

1. Google Maps is so large that it takes a long time to code
2. Scratch is aged 8-16 so a young child could comment their location
3. After they comment locations, Strangers could go visit the location


1. honestly it wouldn't be that hard if you just ported a map image over in tiles and scrolled that around.
2 + 3. people are more sensible than that (stranger danger) plus you can turn comments off

not saying you're wrong, but certainly such a project is possible and can be very safe.

Powered by DjangoBB