# I need help making my compass app

**URL:** https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065
**Category:** Issues / Bugs
**Tags:** help
**Created:** [April 3, 2025, 9:10am UTC](https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065 "2025-04-03T09:10:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![himchong29c0gr6t](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@himchong29c0gr6t](https://community.thunkable.com/u/himchong29c0gr6t)
#### Post date: [April 3, 2025, 9:10am UTC](https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065/1 "2025-04-03T09:10:54Z")

</div>

I am trying to make a compass app but there’s an issue.

This is the link to my app: [Thunkable](https://x.thunkable.com/projects/67ed667005fa1b9110b0eedb/db9e1929-a140-4b21-be77-d36d195c03fa/blocks)

When I try to live view it from my phone, it says **“Something has gone wrong. Check your blocks and reset this page”** , but I don’t know what is my error. Can someone **check my code** and **see what’s wrong** with it? Thanks.

---

<div class="post-metadata">

### Author: ![himchong29c0gr6t](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@himchong29c0gr6t](https://community.thunkable.com/u/himchong29c0gr6t)
#### Post date: [April 3, 2025, 9:17am UTC](https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065/2 "2025-04-03T09:17:02Z")

</div>

Also one more thing I forgot to say, the error message pops up on both my iPhone and Samsung device. If I try web view it lets me try the app, but I cannot test the compass itself because my computer doesn’t have a magnetometer.

---

<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 3, 2025, 2:46pm UTC](https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065/3 "2025-04-03T14:46:01Z")

</div>

The one thing I tried is to initialize your lists as empty lists. Because you’re inserting list items into a variable that doesn’t yet have a type. But the app still crashes so that wasn’t the fix.

Then I noticed that you are using green blocks as variables. They aren’t meant to be used that way. They’re more like constants. I think you just accidentally swapped the order. Try this, which works for me:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/6/e6ac353fc692d53b818d291e71b760c292eb8c0d.png)

---

<div class="post-metadata">

### Author: ![himchong29c0gr6t](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@himchong29c0gr6t](https://community.thunkable.com/u/himchong29c0gr6t)
#### Post date: [April 24, 2025, 3:12pm UTC](https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065/4 "2025-04-24T15:12:18Z")

</div>

Hi there! I tried the new code you shown in the picture but it does not seem to work. This is my link:

> **[Thunkable](https://x.thunkable.com/projects/67ed667005fa1b9110b0eedb/7d1587b6-36c2-42de-b177-7603f707d1af/blocks)**

I might have overlooked something, can you help me check it? Thank you.

---

<div class="post-metadata">

### Author: ![shrey](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shrey/32/105637_2.png) [@shrey](https://community.thunkable.com/u/shrey)
#### Post date: [April 24, 2025, 4:42pm UTC](https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065/5 "2025-04-24T16:42:19Z")

</div>

Haven’t tested this yet, but perhaps you could do this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/102af52e6613f6134f4696cf21de2f47a9872c34.png)

The purple Call block is found under the Any Component tab

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/fefabbbd7b741b1cedeab633327eb330685226ad.png)

Found this on @tatiang 's old post

> [@Magnetometer compass heading how?](https://community.thunkable.com/t/magnetometer-compass-heading-how/1365284/6):
>
> Ah, I see now… a bit hidden:

---

<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 25, 2025, 3:18pm UTC](https://community.thunkable.com/t/i-need-help-making-my-compass-app/3711065/6 "2025-04-25T15:18:45Z")

</div>

To troubleshoot those blocks, I would recommend a technique for checking variable values: [Debugging in Thunkable X (Video)](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471)
