Hi there,
I’m working on Arcade docs to support a Family Game making programme I’m running.
I may be stretching the limits of the system, but I’m looking to start my docs from a relatively full project that works, and then for users to tweak aspects of the project. A learning my remixing approach.
I’m getting errors when trying to make the following project code available as a starting template, using the template macro.
Here is my result with errors showing in the starting code.
Can anyone see the problem here? Thanks in advance for your help.
Many
Hi there,
I’m tacking on to here as it seems related.Let me know if I should repost.
My from scratch tutorial is progressing well - the process is flowing but some tricky bits about getting blocks to display in tooltips correctly, which I understand from seeing a MakeCode tutorial demo at Microbit Live is the preferred way of doing things.
Here’s the latest.
Blocks in the latest step 14 - the blocks aren’t showing.
I haven’t added any packages but can’t quite get a combination that shows my desired loop.
```blocks
for (let value of tiles.getTilesByType(myTiles.tile1)) {
strawberry = sprites.create(img`
. . . . . . . 6 . . . . . . . .
. . . . . . 8 6 6 . . . 6 8 . .
. . . e e e 8 8 6 6 . 6 7 8 . .
. . e 2 2 2 2 e 8 6 6 7 6 . . .
. e 2 2 4 4 2 7 7 7 7 7 8 6 . .
. e 2 4 4 2 6 7 7 7 6 7 6 8 8 .
e 2 4 5 2 2 6 7 7 6 2 7 7 6 . .
e 2 4 4 2 2 6 7 6 2 2 6 7 7 6 .
e 2 4 2 2 2 6 6 2 2 2 e 7 7 6 .
e 2 4 2 2 4 2 2 2 4 2 2 e 7 6 .
e 2 4 2 2 2 2 2 2 2 2 2 e c 6 .
e 2 2 2 2 2 2 2 4 e 2 e e c . .
e e 2 e 2 2 4 2 2 e e e c . . .
e e e e 2 e 2 2 e e e c . . . .
e e e 2 e e c e c c c . . . . .
. c c c c c c c . . . . . . . .
`, SpriteKind.Food)
tiles.placeOnTile(strawberry, value)
tiles.setTileAt(value, myTiles.tile0)
}
```
Here’s what I’d like to show.
On a related note
How would you display only one block so that it excludes the wrapping on start function? Or is using an image preferred in this case?
The ```block macro (no s) shows just just the blocks you put in it (no on start) in the docs view, but I can’t say I’ve ever it in a tutorial - it currently might not filter the tutorial or render incorrectly, the feature hasn’t been used much lately.
Oh, I missed the other question, sorry! Looks like it’s missing the tiles namespace, which stores information about the tilemap – in particular, the custom tiles you drew.
in this case, it looks like we should be able to trim the set tile and still have the block show up exactly as you wanted:
These are still not ready for review yet. But let me know the best way to share them for community review. Would it be as links like the above or as a github repo? and if the second what kind of format - just the md and image files?
Hi there,
I’ve struggled a bit more than I thought I would with this, would it be possible for someone to check that these load ok before I repost for community feedback - thanks.
Part One - Simple Platformer Tutorial (with new tilemap)
Part Two - Simple Platformer Tutorial (with new tilemap)