Discuss Scratch

m00c0w_321
Scratcher
13 posts

Tilemap help

Hello everyone,
I am in the works of creating a simple isometric version of minecraft, and I am needing some help with the tile snapping. Each block is 32x32 pixels, but when I change the tile snapping to 32 pixels, the blocks (only on the Y axis) don't line up. I would really like some help with this.
Here is the link: https://scratch.mit.edu/projects/988320506/
Thanks

Malicondi
Scratcher
1000+ posts

Tilemap help

The problem is because the y is using this:
go to x: () y:((round ((mouse y)/(8))) * (8))
when 8 should be changed to 16. Once you do that, it should work properly, hope this helps!

post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


m00c0w_321
Scratcher
13 posts

Tilemap help

Malicondi wrote:

The problem is because the y is using this:
go to x: () y:((round ((mouse y)/(8))) * (8))
when 8 should be changed to 16. Once you do that, it should work properly, hope this helps!

Sorry, but it didn't help. It works when placing blocks on top of one another, but when I place them beside each other, there are gaps.
Malicondi
Scratcher
1000+ posts

Tilemap help

your oak plank texture is a pixel shorter than the log and grass textures, which is why there is a 1 pixel gap.

Last edited by Malicondi (March 23, 2024 23:55:19)


post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


Powered by DjangoBB