# Hide some sprites when screen starts or loads

**URL:** <https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821>\
**Category:** Questions about Thunkable X\
**Created:** [August 12, 2022, 11:35pm UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821 "2022-08-12T23:35:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristhorsteinssonf4y](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kristhorsteinssonf4y/32/136014_2.png) [@kristhorsteinssonf4y](https://community.thunkable.com/u/kristhorsteinssonf4y)\
**Post date:** [August 12, 2022, 11:35pm UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/1 "2022-08-12T23:35:29Z")

</div>

Hi, My app uses up to about 30 round dot sprites in preset fixed positions when various graphics are displayed. The sprites work properly (move to the correct position and show or hide) in all cases except when the screen first loads / opens. I tried using a function  
 ![Screen Shot 2022-08-12 at 5.21.43 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/41b88d6725ddc21422d34884dd05589176c06fbc.png)  
 ![Screen Shot 2022-08-12 at 5.22.29 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/a/2a9bff6f31aa5c66dbb49883d60b7b457e39f7d0.png)  
I moved all sprites that need to be hidden to the left upper corner in design view, see below.  
 ![Screen Shot 2022-08-12 at 5.29.25 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/4/a4c167d0f5494fec17b8cf5c7c6e46059d6c5f8c.png)  
I could also make the hidden sprite heights = .01 in design mode and then resize them after loading, but was hoping for a simpler method.  
Thx!

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 13, 2022, 1:43am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/2 "2022-08-13T01:43:58Z")

</div>

Have you tried adding a wait 0.1 seconds before hiding them?

---

<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:** [August 13, 2022, 2:24am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/3 "2022-08-13T02:24:13Z")

</div>

> [@zander](#):
>
> Have you tried adding a wait 0.1 seconds before hiding them?

That’s not a bad idea but I’d try using the When Canvas Loads block instead of the When Screen Opens block.

---

<div class="post-metadata">

**Author:** ![kristhorsteinssonf4y](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kristhorsteinssonf4y/32/136014_2.png) [@kristhorsteinssonf4y](https://community.thunkable.com/u/kristhorsteinssonf4y)\
**Post date:** [August 13, 2022, 2:25am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/4 "2022-08-13T02:25:11Z")

</div>

Thx,  
I tried adding a 1 sec wait to the main Screen2 and Screen1 with no change in result.  
 ![Screen Shot 2022-08-12 at 8.21.08 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/c/1c10b2d1797f48273878134f2d39dfca2668c203.png)  
 ![Screen Shot 2022-08-12 at 8.21.32 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/6/6606017ab0af7ef67cf89a70446d051c55e41f67.png)

---

<div class="post-metadata">

**Author:** ![kristhorsteinssonf4y](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kristhorsteinssonf4y/32/136014_2.png) [@kristhorsteinssonf4y](https://community.thunkable.com/u/kristhorsteinssonf4y)\
**Post date:** [August 13, 2022, 2:31am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/5 "2022-08-13T02:31:28Z")

</div>

Thx, I tried When Canvas loads but no change.  
 ![Screen Shot 2022-08-12 at 8.30.37 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/2013977900f203cae4dfc7266ec2e02ff3738d57.png)

---

<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:** [August 13, 2022, 2:35am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/6 "2022-08-13T02:35:59Z")

</div>

Hmm… I’m not sure what to recommend beyond that. I’ve found the Canvas blocks to be inconsistent — not necessarily related to loading or initial placement but in terms of positioning of sprites — so I haven’t used them all that much.

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 15, 2022, 1:19am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/7 "2022-08-15T01:19:02Z")

</div>

Have you tried setting them all to invisible in the designer? Then setting them to visible when you need them? (I have no experience with Sprites)

---

<div class="post-metadata">

**Author:** ![kristhorsteinssonf4y](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kristhorsteinssonf4y/32/136014_2.png) [@kristhorsteinssonf4y](https://community.thunkable.com/u/kristhorsteinssonf4y)\
**Post date:** [August 15, 2022, 2:51am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/8 "2022-08-15T02:51:26Z")

</div>

Thx, I used that method on another platform, but in Thunkable there is no initial show / hide sprite option in designer that I can see, only in the blocks. If there is no show / hide solution that works on startup I’ll likely set opacity of the sprites in designer to 0, and then change the opacity back in the blocks.

---

<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:** [November 13, 2022, 2:52am UTC](https://community.thunkable.com/t/hide-some-sprites-when-screen-starts-or-loads/1997821/9 "2022-11-13T02:52:03Z")

</div>

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