# A snapshot extension for Screen or Tilemap

**URL:** https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064
**Category:** Show & Tell
**Tags:** extension, make, graphics-and-math
**Created:** [April 11, 2022, 5:35pm UTC](https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064 "2022-04-11T17:35:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)
#### Post date: [April 11, 2022, 5:35pm UTC](https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064/1 "2022-04-11T17:35:58Z")

</div>

Hi there!  
This is a new extension that take a screenshot or a snapshot of current tilemap. Device data transfers are via usb connection, then to console. A work-around-alike implement, before there would be a dedicate way in Arcade/Makecode in the future.

## Extension Url

[https://github.com/AqeeAqee/arcade-snapshot](https://github.com/AqeeAqee/arcade-snapshot)  
or  
AqeeAqee/arcade-snapshot

## Funcitons

```auto
console.takeScreenshot()

```

Output screen image define codes to console. Especially for device(though it can work on sim as well), for there’s no way to get a screenshot on device by now as far as I know. E.g. save your art in a drawing project.

```auto
console.takeTilemapSnapshot()

```

Output current tilemap define codes to console. Useful when you edited tilemap in run-time and want to saved it for reuse in later projects, work for both sim and device too.

## Blocks

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/5cb8d933456678b7ceac536e59a4c40c50e21229.png)

## Usage

- Connect device via usb, choose hardware, make sure connection icon shown before download button.
- After called functions, click the “Show console Device” underneath the simulator, copy and paste codes from log textbox into anywhere of the Code Editor, then you could see the tilemap or screenshot image by click the icon ahead the first line of these codes

## Note

For tilemap, the tiles hex string very likely too long to display in single line in console, if it wrapped into 2 lines, join the them together before use, or bottom tiles will be lost.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/5d7239838b916cfafa9ea055e324638508d83094.png)

in above, tiles hex string was wraped, join them together as below

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/26a9b032cfad6efecd85b377286c618b30214d5d.png)

## Any feedbacks are always welcome and appreciated.

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [January 10, 2023, 12:54am UTC](https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064/2 "2023-01-10T00:54:45Z")

</div>

It doesnt work for me?

---

<div class="post-metadata">

### Author: ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)
#### Post date: [January 10, 2023, 6:06pm UTC](https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064/3 "2023-01-10T18:06:15Z")

</div>

What’s the issue you met?

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [January 10, 2023, 7:15pm UTC](https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064/4 "2023-01-10T19:15:13Z")

</div>

The website you linked ‘Aqeeaqee/arcade-snapshot’ doesnt work, the github does but I don’t know how to use github haha

---

<div class="post-metadata">

### Author: ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)
#### Post date: [January 10, 2023, 11:56pm UTC](https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064/5 "2023-01-10T23:56:32Z")

</div>

You don’t need to know github, just Add Extension, searching the link or ‘Aqeeaqee/arcade-snapshot’ for short.

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [January 11, 2023, 6:18pm UTC](https://forum.makecode.com/t/a-snapshot-extension-for-screen-or-tilemap/13064/6 "2023-01-11T18:18:19Z")

</div>

Ah thanks so much! : D
