# AI Extension help!

**URL:** <https://forum.makecode.com/t/ai-extension-help/20587>\
**Category:** Help\
**Created:** [June 12, 2023, 4:32pm UTC](https://forum.makecode.com/t/ai-extension-help/20587 "2023-06-12T16:32:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [June 12, 2023, 4:32pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/1 "2023-06-12T16:32:56Z")

</div>

Hey everyone! As you might know, I made the first AI in Makecode (here!) and have wanted to turn it into a ✨ extension ✨ ! Thing is, I have no IDEA how to use typescript or JavaScript. While I did learn it 5 years ago… that was 5 years ago! I have all the code formatted into individual functions in blocks. If anyone would help me turn those blocks functions into an extension, I would be super thankful! And I would credit you with helping in the extension 🙂 Thanks!

---

<div class="post-metadata">

**Author:** ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)\
**Post date:** [June 12, 2023, 6:41pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/2 "2023-06-12T18:41:23Z")

</div>

the link does not appear

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [June 12, 2023, 10:28pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/3 "2023-06-12T22:28:32Z")

</div>

There is no link yet! I still havent found any helper!

---

<div class="post-metadata">

**Author:** ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)\
**Post date:** [June 13, 2023, 4:21pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/4 "2023-06-13T16:21:30Z")

</div>

oh ok

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 14, 2023, 5:03pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/5 "2023-06-14T17:03:21Z")

</div>

send me the code i will make a extension with it and i will give you the code (you can put it on github) as i don’t know how-to yet  
just to prove that i can do it here ar some of the ones i made  
[Image Editor](https://makecode.com/_JF59HPDyKJUY) my first extension  
[Player Pixel Physique](https://makecode.com/_a9ATzsb82Pec) a work in progress

> **Image Editor**
>
> this is my first extention it’s not the best but everything works as intended, i made it for a extension i have not made yet (a tile creator/PathMaker)

> **Player Pixel Physique**
>
> Aerolithium is a made up material. it’s a floating liquid  
> Ps. i haven’t made interaction with the other pixels, so like sand will float on calm water and sand will stop Aerolithium from going up  
> And any pixel will act like a wall but Antimatter will still destroy it (as for any other pixel)

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 14, 2023, 5:03pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/6 "2023-06-14T17:03:44Z")

</div>

i took a look to your Neural Network and i must say im imprest.  
But the neural network needs to be mostly custom im thinking of a block like this  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/a5501445effb597842fa6fe23191ce74c9186b12.png)

or

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d9b9ddf4b00a154246186f230c2206e0a203c1ed.png)  
these ar just some ideas  
and you give me a hex or rgb color, the green is just there as i need a color or its gonna be black  
just tag me if you neen my help and you can also ask @richard for help if you need to

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [June 14, 2023, 5:17pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/7 "2023-06-14T17:17:09Z")

</div>

Awesome! I’ll get this all formatted into functions and send it over- just want to make sure its working before you go through the effort of making it an extension

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 14, 2023, 5:39pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/8 "2023-06-14T17:39:02Z")

</div>

The W\_A\_S\_D and W\_A\_S\_D\_A\_B is just a idea, for things like nps i can try to train some neural networks for different things like Npcs Enemies (the problem is if the person is in a platformer world or not)

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 15, 2023, 3:44pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/9 "2023-06-15T15:44:35Z")

</div>

@richard and @jwunderl will make a streem about classes in a few days so maybe we can make a class for the neural network, but you decide what we do

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [June 15, 2023, 5:30pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/10 "2023-06-15T17:30:11Z")

</div>

Oo classes! What are those?

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 15, 2023, 8:04pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/11 "2023-06-15T20:04:25Z")

</div>

classes are like a custom input in blocks, like enum’s but not limited to a set of options  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/6edb7e55844ce222cd8674ee10a5086e33c71689.png)  
all of these have classes. you see that darker part of the blocks? those ar classes

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e357603e648026b18eeebdde407829aa4a327683.png)  
here is the code for it in TypeScript (just a part of the color fading extension)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [June 15, 2023, 8:38pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/12 "2023-06-15T20:38:18Z")

</div>

Ohh cool!

---

<div class="post-metadata">

**Author:** ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)\
**Post date:** [June 15, 2023, 10:07pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/13 "2023-06-15T22:07:33Z")

</div>

I cant wait for the extention!

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 16, 2023, 4:15pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/14 "2023-06-16T16:15:15Z")

</div>

ya i thinking of making a rpg with it

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 16, 2023, 4:15pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/15 "2023-06-16T16:15:19Z")

</div>

also we will need to train the ai every time the game starts… that will be a pain to test

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 23, 2023, 8:32pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/16 "2023-06-23T20:32:32Z")

</div>

i was worried that you sent me the code, cuz my internet was down for the last 6 days 😅 2023-06-17T04:00:00Z→2023-06-23T04:00:00Z  
Ho and my sister is graduating and getting her diploma 2023-06-24T04:00:00Z so i’m not gonna be able to make the extension 2023-06-24T04:00:00Z (“if you send the code 2023-06-24T04:00:00Z.”)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [June 23, 2023, 9:24pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/17 "2023-06-23T21:24:18Z")

</div>

Yeah It might take me a bit, I took a break from it to compete in the unique a thon 2 (a round ends today) and to work on my arcade machine- I’ll try and send that soon but dw there is no rush!

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [June 26, 2023, 8:15pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/18 "2023-06-26T20:15:09Z")

</div>

hope this doesn’t end like terminator lol

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [July 10, 2023, 4:44pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/19 "2023-07-10T16:44:24Z")

</div>

hey i was just wondering how the functions ar going.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [July 10, 2023, 9:25pm UTC](https://forum.makecode.com/t/ai-extension-help/20587/20 "2023-07-10T21:25:23Z")

</div>

alright, but I am at a summer program and away from a computer so it is slow on a phone

[Next page](https://forum.makecode.com/t/ai-extension-help/20587.md?page=2)
