# Using the Canvas "Stamp" block

**URL:** <https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455>\
**Category:** Questions about Thunkable X\
**Created:** [March 30, 2022, 9:32pm UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455 "2022-03-30T21:32:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_shelby\_hhs](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@john\_shelby\_hhs](https://community.thunkable.com/u/john_shelby_hhs)\
**Post date:** [March 30, 2022, 9:32pm UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/1 "2022-03-30T21:32:29Z")

</div>

Hi folks -  
I’m having trouble with the Canvas’ “stamp” block. It might just be that I don’t know how it works and I’m finding only sparse documentation of it. I have a basic example here: [Thunkable](https://x.thunkable.com/projects/6244c6b05234da0011d579b6/5cc16eb2-7ff6-42d9-a03d-46b3c990f0d3/blocks)

And stamps do not seem to be appearing in the Canvas  
What I would expect: Everytime we click on the canvas, a star shows up at the click point (the only sprite in the example is a star image).  
What I get: Everytime I click, the sprite moves to the click point, but does not leave a stamped image behind.

Any ideas about what I could be doing wrong here?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 31, 2022, 2:26am UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/2 "2022-03-31T02:26:22Z")

</div>

See the docs part about it here

 ![Screenshot_2022-03-31-05-23-46-47_40deb401b9ffe8e1df2f1cc5ba480b12](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/9/194d46c48a20fe7dd1b67975cc8e024c415badaf.jpeg)

---

<div class="post-metadata">

**Author:** ![john\_shelby\_hhs](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@john\_shelby\_hhs](https://community.thunkable.com/u/john_shelby_hhs)\
**Post date:** [March 31, 2022, 7:55pm UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/3 "2022-03-31T19:55:57Z")

</div>

Yea, I’ve checked out that bit of documentation, and that’s exactly what I’m expecting it to do. The problem I’m having is that it is not doing that. Or potentially I’m confused about what a “freeze frame” is, if it’s something more technical than I expect.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 31, 2022, 8:38pm UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/4 "2022-03-31T20:38:09Z")

</div>

> [@john\_shelby\_hhs](#):
>
> freeze frame

Let me tell you what it means from my JavaScript knowledge. This option is used for animated sprites which will cause the sprite to stop the animation and show the current `frame`. Not what you would expect but this is how it is used for in JavaScript.

---

<div class="post-metadata">

**Author:** ![john\_shelby\_hhs](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@john\_shelby\_hhs](https://community.thunkable.com/u/john_shelby_hhs)\
**Post date:** [April 1, 2022, 11:12pm UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/5 "2022-04-01T23:12:03Z")

</div>

For the future readers of this thread:

According to the Thunkable rep I chatted with, the “stamp” block does not do what you would expect if used with a sprite that has a local image on the device. If the sprite has a url-based image, it works. This might be updated in a fix at some point.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 2, 2022, 1:29am UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/6 "2022-04-02T01:29:28Z")

</div>

Can you please clarify what you mean by “what you would expect”? My understanding from this thread is that you wanted to clone a sprite but the stamp block actually freezes a sprite (animation) in place.

---

<div class="post-metadata">

**Author:** ![john\_shelby\_hhs](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@john\_shelby\_hhs](https://community.thunkable.com/u/john_shelby_hhs)\
**Post date:** [April 2, 2022, 4:10am UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/7 "2022-04-02T04:10:23Z")

</div>

I would expect the stamp block to create a static image on the canvas such that a picture of the sprite is “painted” into the stage’s drawing frame. Each stamp would produce a separate image on the drawing. These stamps would not be full clones (you could not move it, but you could draw on top of it later - because it’s just a drawing). There is actually a “stamp” block in Scratch as well, which acts this way too.

I have confirmation from the Thunkable rep that it should work this way, but it doesn’t for locally stored images. Since that conversation, I have gotten the block to work the way I’d expect by using a image for my sprite that is stored off device (the image for the sprite is a url).

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 2, 2022, 4:28am UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/8 "2022-04-02T04:28:46Z")

</div>

Thanks for the explanation. That’s very helpful! Yes, I’m familiar with the stamp block in Scratch. It would be a great feature to have in Thunkable, assuming it gets fixed.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [April 2, 2022, 8:02am UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/9 "2022-04-02T08:02:44Z")

</div>

> [@john\_shelby\_hhs](#):
>
> Since that conversation, I have gotten the block to work the way I’d expect

Glad to hear that @john_shelby_hhs !

* * *

> [@tatiang](#):
>
> It would be a great feature to have in Thunkable, assuming it gets fixed

Just to clarify @tatiang, the current functionality is currently the same as Scratch, but at the moment it doesn’t work with local assets. Using URLs, for cloud stored images works as expected though.

Will circle back next week to let you know what the situation with local assets is.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 1, 2022, 8:03am UTC](https://community.thunkable.com/t/using-the-canvas-stamp-block/1810455/10 "2022-07-01T08:03:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
