Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » "Map tiling"
- Lanste
- Scratcher
9 posts
"Map tiling"
Hi,
I copied script from tiling tutorial by MathMathMath (shout out to him) and used it in my testing project to see what I can do with it. The tiling itself works fine, but the top and bottom tiles are always visible in corners.
Thanks for help.
My project: https://scratch.mit.edu/projects/253597321/#editor
Original: https://scratch.mit.edu/projects/106692426/#editor
I copied script from tiling tutorial by MathMathMath (shout out to him) and used it in my testing project to see what I can do with it. The tiling itself works fine, but the top and bottom tiles are always visible in corners.
Thanks for help.
My project: https://scratch.mit.edu/projects/253597321/#editor
Original: https://scratch.mit.edu/projects/106692426/#editor
- titanicman200
- Scratcher
100+ posts
"Map tiling"
You could try to make it only show when the camera x and y are between specific values, else hide?
sorry literally had like 2 minutes to look at it so far in case you cant do this becuz of a specific thing your trying to do
sorry literally had like 2 minutes to look at it so far in case you cant do this becuz of a specific thing your trying to do
My latest projects have centered around natural looking landscapes… Fear me and my colorful grids!
- Lanste
- Scratcher
9 posts
"Map tiling"
But there already is something that does it… or am I wrong? The abs() part
Last edited by Lanste (Oct. 18, 2018 15:20:26)
- imfh
- Scratcher
1000+ posts
"Map tiling"
The costumes need to be completely filled with color, eg. green in your case, or else scratch won't let the sprites go far enough off the screen.
Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
- Lanste
- Scratcher
9 posts
"Map tiling"
That was my older version, just different coloured tiles (literally). The same thing happened.. line of not-disappeared tile… The costumes need to be completely filled with color, eg. green in your case, or else scratch won't let the sprites go far enough off the screen.
edit: Just changed the sprites for you
Last edited by Lanste (Oct. 18, 2018 15:42:33)
- Lanste
- Scratcher
9 posts
"Map tiling"
Thanks for replies… solved, I am just dumb and misread one number…
- imfh
- Scratcher
1000+ posts
"Map tiling"
When I tried filling the sprites in completely it worked. That could have been because I also tried putting where the sprite is supposed to go into the if statement and forgot to try it with the normal x position and y position though.
Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
- Lanste
- Scratcher
9 posts
"Map tiling"
Have you seen the original project? My point is that his script works well, and my doesn't even though it's the same except positions of tiles.
- Lanste
- Scratcher
9 posts
"Map tiling"
*REUPLOADED: Have you unshared yours?https://scratch.mit.edu/projects/253780198/
- Lanste
- Scratcher
9 posts
"Map tiling"
Strange… I just found out that my problem doesn't occur in offline editor
- imfh
- Scratcher
1000+ posts
"Map tiling"
Have you seen the original project? My point is that his script works well, and my doesn't even though it's the same except positions of tiles.
Yes, I saw his script. When I went your project(just now) and filled the background of every costume in Sprite1 and hit the green flag(important so the clones update), it worked. Maybe a combination of the one number and the sprites not being filled? It also might have something to do with his costumes being vector and going past the paint area.
Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
- Lanste
- Scratcher
9 posts
"Map tiling"
I am seriously confused now. It works… thanks for all replies…
- Discussion Forums
- » Help with Scripts
- » "Map tiling"