# Set background block doesn't work

**URL:** <https://forum.makecode.com/t/set-background-block-doesnt-work/18156>\
**Category:** Help\
**Created:** [February 25, 2023, 6:36am UTC](https://forum.makecode.com/t/set-background-block-doesnt-work/18156 "2023-02-25T06:36:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freeando](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/freeando/32/7740_2.png) [@Freeando](https://forum.makecode.com/u/Freeando)\
**Post date:** [February 25, 2023, 6:36am UTC](https://forum.makecode.com/t/set-background-block-doesnt-work/18156/1 "2023-02-25T06:36:44Z")

</div>

I’m trying to make a title screen for a school project game, and yet the set background block just doesn’t seem to work.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/346e6e8cab73d545c47e57e4af8c5f8e686b2aea.png)  
This is the code, I can’t spot anything wrong with it in debug mode. I’ve already checked and nothing is set to change the background to nothing.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/1daf68e242131b72e0f8da440258692d34f3dc2c.png)  
This is all the code does for me. No background, but the song still plays and the Game Scene variable is set to “Title Screen.” The only thing that doesn’t work is the set background block.

Please help!

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [February 26, 2023, 8:50pm UTC](https://forum.makecode.com/t/set-background-block-doesnt-work/18156/2 "2023-02-26T20:50:55Z")

</div>

Yeah, that seems strange…  
Could you share the code? That way it’s easier to debug

---

<div class="post-metadata">

**Author:** ![danger\_kitty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danger_kitty/32/32006_2.png) [@danger\_kitty](https://forum.makecode.com/u/danger_kitty)\
**Post date:** [February 26, 2023, 8:51pm UTC](https://forum.makecode.com/t/set-background-block-doesnt-work/18156/3 "2023-02-26T20:51:20Z")

</div>

Is 3D extension on the project

---

<div class="post-metadata">

**Author:** ![Freeando](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/freeando/32/7740_2.png) [@Freeando](https://forum.makecode.com/u/Freeando)\
**Post date:** [February 26, 2023, 8:52pm UTC](https://forum.makecode.com/t/set-background-block-doesnt-work/18156/4 "2023-02-26T20:52:12Z")

</div>

I fixed it before this post got approved!

Apparently the raycasting extension had automatically put the view mode into raycasting mode, so all I had to do was set the view mode to tilemap mode.

Hope this helps to people with the same problem!

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [February 26, 2023, 8:57pm UTC](https://forum.makecode.com/t/set-background-block-doesnt-work/18156/5 "2023-02-26T20:57:29Z")

</div>

Can you send the game link?
