So I have a Perlin Noise map but I want it to be able to convert to tilemap help
I’ve never used the perlin noise extension, but all of the “maps” are numbers, or in other words, arrays of arrays of numbers. Try to do some research and figure out how to turn those numbers into a tileMap
Here is an example I made using my extension, WoofWoofCodes/pxt-tilemapgen
Here’s my fix! ![]()
I just looped over the 2D array and set each tile of the tilemap to the value in the array as a tile:
LMK if this works with your size of tilemap / any bugs come up!
I just guessed that the maximum number was 8 when I wrote the code. You’ll have to make a tile 9. Make sure to add it to the tilemap or it won’t end up in the list. Maybe make a tile 10 just in case? It might be super rare, but better to have it then to not have it.
@YuHayate please create a new release of the noise extension to get rid of the code in main.ts. It’s correct on GitHub, but is still there when you import the extension.
Yeah, the background is sometimes set to that for me too! Any clue on what causes it?
It’s the noise generation extension. @YuHayate forgot to create a new release after removing that code from main.ts.


