# I need help understanding the functions different parameters, and how to use them

**URL:** https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943
**Category:** Help
**Created:** [April 4, 2023, 3:07pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943 "2023-04-04T15:07:04Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![aydenpala](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@aydenpala](https://forum.makecode.com/u/aydenpala)
#### Post date: [April 4, 2023, 3:07pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/1 "2023-04-04T15:07:04Z")

</div>

I need extra help understanding the different parameters that the functions sometimes use like sprite, boolean, and image parameters. If anyone could send projects that utilize thoughts kinds of parameters, that I can look over and get an idea on how to use them I would appreciate it a ton

---

<div class="post-metadata">

### Author: ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)
#### Post date: [April 4, 2023, 4:51pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/2 "2023-04-04T16:51:24Z")

</div>

True… I don’t understand functions AT ALL…

---

<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: [April 4, 2023, 6:39pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/3 "2023-04-04T18:39:10Z")

</div>

i can help just wait a bit

---

<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: [April 4, 2023, 7:53pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/4 "2023-04-04T19:53:25Z")

</div>

> **[fonction](https://arcade.makecode.com/95918-42634-18293-24887)**
>
> Fait avec ❤️ dans Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)
#### Post date: [April 5, 2023, 3:45pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/5 "2023-04-05T15:45:35Z")

</div>

I like fonctions

---

<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: [April 5, 2023, 3:45pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/6 "2023-04-05T15:45:57Z")

</div>

I LOVE functions!! Basically a function is like your own custom block of code. Say you wanted a block to move a sprite the same amount up and to the right to make it move ✨ diagonally ✨ ! Instead of having a ‘Change sprite x by 1’ and ‘change sprite y by 1’ for EVERY SINGLE SPRITE YOU NEED TO MOVE (very big!) you can have a function with the parameter ‘sprite’ so that the code _inside_ the function is ‘change (sprite parameter) x by 1’ and ‘change (sprite parameter) y by 1’. The parameter is just a placeholder for watever thing you put in when you need to use the function; put in player when you want to move the player, put in enemy when you want to move the enemy, etc. It works the same way for other parameters of course. Hope this helps!

---

<div class="post-metadata">

### Author: ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)
#### Post date: [April 5, 2023, 11:18pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/7 "2023-04-05T23:18:12Z")

</div>

It sincerely does! Thanks!

---

<div class="post-metadata">

### Author: ![aydenpala](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@aydenpala](https://forum.makecode.com/u/aydenpala)
#### Post date: [April 6, 2023, 4:26pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/8 "2023-04-06T16:26:13Z")

</div>

Thank you! Your explanation cleared things up for me appreciate it

---

<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: [April 7, 2023, 9:58pm UTC](https://forum.makecode.com/t/i-need-help-understanding-the-functions-different-parameters-and-how-to-use-them/18943/9 "2023-04-07T21:58:24Z")

</div>

Awesome!
