# \[SOLVED\] Canvas - Stage - Sprite to display an image and get x and y plus draw a dot

**URL:** https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907
**Category:** Questions about Thunkable X
**Created:** [March 28, 2024, 7:21pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907 "2024-03-28T19:21:22Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [March 28, 2024, 7:21pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/1 "2024-03-28T19:21:22Z")

</div>

Hi !!  
I have been trying for day to create a screen where i display an image of the Human Body. I need to touch anywhere on the image and get x and y and draw a red dot.

I have been able to accomplish both but not at the same time, meaning i draw the dots but get no coordinates; or the other way around.

Desperately in need of Help !!

Thanks,

Carlos

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [April 5, 2024, 4:24pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/2 "2024-04-05T16:24:08Z")

</div>

Hi @Carlos_Bieberach, we are happy to help here. Can you show what blocks you are using to attempt to get the coordinates and draw the dot?

Thank you!

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 5, 2024, 7:05pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/3 "2024-04-05T19:05:50Z")

</div>

Thank you for your response.

I did a combination of both meaning, dots show on sprite when i touch and coordinates are gathered from canvas - on touch.

Making the sprite 50% transparent allows me to have both all dots and x/y value.

I dont know if this is the correct/best way but it works perfectly.

Carlos

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 15, 2024, 8:32pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/4 "2024-04-15T20:32:18Z")

</div>

Hello again Matt,  
Something weird happened. For the last 4 days i have been trying to understand what is going on.

Short version:  
My only 2 buttons above my canvas stopped working. I went 2 versions back and they work fine. I took photos of these 2 simple pages (old and new) and all is identical.

One button clears the canvas the other invokes my Rest API call to POST information about the dots’s coordinates i have created by touch. These 2 buttons worked fine since i created them 2-3 weeks ago.

On Saturday I added “save canvas as an image” block and I think that’s when my 2 buttons on that screen stopped working.

You click on the buttons and you see the reaction but no execution.

I even removed the 2 blocks inside my Clear sceen button and added an alert just to show the word “hello” and no alert pop up yet the button shows the effect of being pressed. They simple do not execute the blocks in them.

Any ideas?

How can i privately share my project with you?

Carlos

 ![HNCa - Pain - buttons dont work](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/377fbd3569f1ddafbadbc6f123fab793e840dee8.png)

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [April 16, 2024, 1:19pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/5 "2024-04-16T13:19:44Z")

</div>

@Carlos_Bieberach There was a bug from last week caused by having a function with an output (return) will cause all other components on the page to also not function.

> [@\[SOLVED\] Known good app crashes as of today, with no additional blocks added](https://community.thunkable.com/t/solved-known-good-app-crashes-as-of-today-with-no-additional-blocks-added/2926436/9):
>
> We’ve discovered an issue related to a recent release where using a function with an output (return) will cause all other components on the page to also not function. Based on the project above, it looks like that is the culprit of your issue. I do sincerely apologize for the inconvenience here. We’re working now to fix this issue as soon as possible. We’ll keep you updated here as we learn more.

![Screenshot 2024-04-11 at 10.21.41 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/6627b419b6c8d1b1fe2ce7549b3b5415f0a1eaf5.png)

Can you add a new block (e.g. a new click event) into the screen so that the code can recompile for the updated code after the bug fix? This should solve the issue and you should be able to have clicks working again.

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 16, 2024, 3:54pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/6 "2024-04-16T15:54:08Z")

</div>

Thank you Matt,  
Yesterday I added another button just with an alert that reads “Hello”. It doesn’t get invoke when I click on the new button. You can see the “click-effect” on the button when you click on it, but no action is executed.

Carlos

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 16, 2024, 4:15pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/7 "2024-04-16T16:15:38Z")

</div>

just added a new button with just a text alert.

removed the “return” block from my http POST

same results.

You see the new button getting clicked but it does not invoke the alert “hello”

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 17, 2024, 3:21pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/8 "2024-04-17T15:21:36Z")

</div>

Good morning Matt,  
All my pages have functions that return a result and they work fine. I only have this problem with the page where i use Canvas. Yesterday I remove the block that has the http POST and returns a response but same issue, the 2 buttons click but do not execute.

Any updates from your side ? Customer is getting worried. I don’t what else to tell him.

Carlos

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 19, 2024, 3:51pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/9 "2024-04-19T15:51:15Z")

</div>

Can any other Staff Member answer ? I don’t know what happened to Matt.

Where do i open a ticket ?

I pay a membership, is there a Customer Service or Support Department ?

Thank you,

Carlos

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [April 19, 2024, 6:38pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/10 "2024-04-19T18:38:20Z")

</div>

Hello @Carlos_Bieberach  
Matt is out of the office until next week.  
Could you please test it on Web Preview?  
 ![image (1)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/d/0dbba0fe9a5d19f6f2759c1b63681dbf7627a27d.png)

We were able to replicate the issue on mobile and have flagged it to our engineering team.  
We’re committed to finding a resolution quickly, and we will keep you updated as soon as there is any progress.

If you’re on our Pro plan or above, you can always get expedited support by clicking on the Help icon and selecting “Contact Support” in the top right Menu bar in your Project Page.  
 ![Screenshot 2023-07-06 at 10.54.50 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/8/c8958ef86d2cc5b4820c8448eee42b94835d10f2.png)

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 19, 2024, 6:52pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/11 "2024-04-19T18:52:13Z")

</div>

Thank you ioannis for your response.

Will test on Web Preview in a few mins.

Im on the Pro Plan and my Help dropdown only shows: Documentation, Community and Video Tutorials.

Thanks again,

Carlos

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [April 19, 2024, 6:57pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/12 "2024-04-19T18:57:51Z")

</div>

Hello @Carlos_Bieberach  
Thanks for sharing more information.  
On StP the support is here:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a3b9a2d90937ca13175863fb5601828092ab999f.png)

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 24, 2024, 7:39pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/13 "2024-04-24T19:39:59Z")

</div>

Hello ioannis,  
Web Preview worked.

Then i created a new Form and instead of a Blank Form I selected “Copy from My Screens” because in order to avoid my Apps’s Registration Form and a bunch of security, I added this screen with the Canvas to “My Screens”, tested it with Web Preview and worked, added it back to my App and it shows as Pain1 since i already have a Pain screen. I click, i see my dots. I hit Clear button which invokes block “Clear drwaings on Canvas 4” and it clears the canvas.

I tried 4 - 5 dots created with the touch of mi finger and was able to eras all.

Switched from Design to Blocks and Clear button stops working. I can close and open app again with same results, the button will never work again until i erase the Form and download it again from “My Screens”.

Carlos

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [April 29, 2024, 6:49pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/14 "2024-04-29T18:49:37Z")

</div>

Hello ioannis. Any ideas what could be wrong.

I dont know whatelse to tell my customer.

Carlos

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [May 6, 2024, 5:34pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/15 "2024-05-06T17:34:50Z")

</div>

Hello @Carlos_Bieberach  
Thank you again for your patience. I would like to let you know that we have now officially released a fix for this bug.

Please keep in mind that you may need to do a [hard refresh](https://docs.thunkable.com/getting-started/data-sources/data-sources#hard-refresh-your-browser) of your browser for the changes to take effect in your project. If this issue is present on the [Thunkable Live](https://thunkable.com/mobile) app, you will want to update that through the App Store and/or Google Play Store before any changes will occur. If your [downloaded or published app](https://docs.thunkable.com/publishing-apps/publish) is affected by this bug, you will need to re-download or re-publish your app for these changes to take effect.

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [May 6, 2024, 5:46pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/16 "2024-05-06T17:46:08Z")

</div>

Thank you. Will test right now.

Carlos

---

<div class="post-metadata">

### Author: ![Carlos\_Bieberach](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@Carlos\_Bieberach](https://community.thunkable.com/u/Carlos_Bieberach)
#### Post date: [May 9, 2024, 6:44pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/17 "2024-05-09T18:44:02Z")

</div>

Hello ioannis,  
It is working now.

Thank you !!

Carlos

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [May 9, 2024, 6:49pm UTC](https://community.thunkable.com/t/solved-canvas-stage-sprite-to-display-an-image-and-get-x-and-y-plus-draw-a-dot/2918907/18 "2024-05-09T18:49:08Z")

</div>


