# I need help with a ton of bugs

**URL:** <https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774>\
**Category:** Help\
**Created:** [May 8, 2023, 4:35pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774 "2023-05-08T16:35:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 4:35pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/1 "2023-05-08T16:35:17Z")

</div>

Here is my game

> **[Wizrd Turn based game](https://arcade.makecode.com/S32151-34575-86340-32088)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

and what is “expression expected” and" identifier expected" i never got that in my other coding projects

So please can you edit the code i will credit you to fix my bugs

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 8, 2023, 5:14pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/2 "2023-05-08T17:14:24Z")

</div>

To me it seems like a lot of the problems are coming from the images.

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 5:14pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/3 "2023-05-08T17:14:53Z")

</div>

BY the WAY This is not done yet im only 5% of the way there so this is only the demo version

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 5:23pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/4 "2023-05-08T17:23:42Z")

</div>

Yeah i have no clue how to fix those since i have no experience with those type of images

---

<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:** [May 8, 2023, 6:25pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/5 "2023-05-08T18:25:04Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2cf626579f6d83fdddf69bf3554b3bd42e2b0d09.png)

🤯 🤯 🤯  
What the hell did you even do???

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 6:26pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/6 "2023-05-08T18:26:23Z")

</div>

i fixed the image i need help with only 1 bug

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 6:26pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/7 "2023-05-08T18:26:51Z")

</div>

> **[Wizrd Turn based game](https://arcade.makecode.com/S19820-19127-25596-63100)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 6:26pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/8 "2023-05-08T18:26:54Z")

</div>

that is the updated link

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [May 8, 2023, 6:34pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/9 "2023-05-08T18:34:11Z")

</div>

The last problem seems to be that you just didn’t put a `}` at the end of your code.

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 9:13pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/10 "2023-05-08T21:13:09Z")

</div>

Well Moderators please help what does this mean?

Line 20: all symbols in top-level scope are always exported; please use a namespace if you want to export only some

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [May 8, 2023, 9:14pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/11 "2023-05-08T21:14:18Z")

</div>

That usually means that you have “export” before a function that isn’t inside of a namespace. You should be able to just remove “export” from before the function declaration, or you can wrap it in a namespace.

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 9:14pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/12 "2023-05-08T21:14:23Z")

</div>

its now fixed all i need to do was define it and change the location

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 9:14pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/13 "2023-05-08T21:14:27Z")

</div>

Yeah i tried it but it keeps asking to add more but when i reached an amount of } a thousand more bugs pop more

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 8, 2023, 9:29pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/14 "2023-05-08T21:29:54Z")

</div>

I tried to fix it with this lines of code`

import { scene } from z’./path/to/scene’;

const newScene = {  
…scene,  
addSprite: (sprite: Sprite) =\> {  
// …  
}  
};

export { newScene };`

is there any problems with this?

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 9, 2023, 4:24pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/15 "2023-05-09T16:24:26Z")

</div>

Is thhere any way i can edit the scene.ts files?

---

<div class="post-metadata">

**Author:** ![Destroyer2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/destroyer2/32/8758_2.png) [@Destroyer2](https://forum.makecode.com/u/Destroyer2)\
**Post date:** [May 9, 2023, 4:31pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/16 "2023-05-09T16:31:20Z")

</div>

Ok @isoffline I will see what I can do with this program and hopefully debug it well enough to work

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 10, 2023, 5:16pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/17 "2023-05-10T17:16:50Z")

</div>

Update: I fixed the bugs but a ton more popped up

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 11, 2023, 8:38pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/18 "2023-05-11T20:38:29Z")

</div>

@KIKIvsIT Sorry for @ing you, but May i ask what is the directory of the main ts to the scen.ts files like ‘./path/to/scene’?

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [May 11, 2023, 11:29pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/19 "2023-05-11T23:29:42Z")

</div>

Sorry, I’m not sure which scen.ts file you’re referring to. We don’t generally pass paths, but we bring them in as extensions, instead.

---

<div class="post-metadata">

**Author:** ![isoffline](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/isoffline/32/8791_2.png) [@isoffline](https://forum.makecode.com/u/isoffline)\
**Post date:** [May 12, 2023, 5:26pm UTC](https://forum.makecode.com/t/i-need-help-with-a-ton-of-bugs/19774/20 "2023-05-12T17:26:19Z")

</div>

oh i meant scene.ts
