# \[SOLVED\] Scratch card game

**URL:** <https://community.thunkable.com/t/solved-scratch-card-game/2930634>\
**Category:** Canvas / Gaming\
**Created:** [April 5, 2024, 11:30am UTC](https://community.thunkable.com/t/solved-scratch-card-game/2930634 "2024-04-05T11:30:56Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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, 7:15pm UTC](https://community.thunkable.com/t/solved-scratch-card-game/2930634/13 "2024-04-16T19:15:03Z")

</div>

They should be! There is another issue with the canvas blocks:

> [@Canvas drawing color bug](https://community.thunkable.com/t/canvas-drawing-color-bug/2939944/1):
>
> Hi Thunkable folks, I have a simple drawing app that has a funny bug in it. The same app worked about a year ago, so it seems like it is potentially due to a Thunkable change. You can find the app here: [Thunkable](https://x.thunkable.com/copy/3064d08adea7cd940fb55a454e5c7470) This app runs fine for me on my device, but it crashes immediately in the Web Preview. I have determined the the culprit is setting a Canvas Stage’s “drawing color” when the screen is opening. This crashes the web preview: [2024-04-10 12\_20\_13-Window] The problem is that I want to …

But this is because of canvas blocks being set when a particular screen loads. They should always be set with the “When canvas loads” block to have behavior that occurs when the canvas component is available. The canvas isn’t loaded when the screen starts which can cause issues or errors.  
 ![image - 2024-03-27T142853.386](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/e/0e1345ac4199196826de4c4e35aac6c6d234aff1.png)

In the longer term, our engineering team will work to get a fix here so that you can use the `when canvas loads` block again.

---

_[View the full topic](https://community.thunkable.com/t/solved-scratch-card-game/2930634)._
