# Choose playersprite

**URL:** <https://forum.makecode.com/t/choose-playersprite/13499>\
**Category:** Arcade\
**Created:** [May 9, 2022, 10:09pm UTC](https://forum.makecode.com/t/choose-playersprite/13499 "2022-05-09T22:09:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wrath\_N\_Beans](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wrath_n_beans/32/5351_2.png) [@Wrath\_N\_Beans](https://forum.makecode.com/u/Wrath_N_Beans)\
**Post date:** [May 9, 2022, 10:09pm UTC](https://forum.makecode.com/t/choose-playersprite/13499/1 "2022-05-09T22:09:17Z")

</div>

> **[choose playersprite](https://arcade.makecode.com/86163-67999-27535-77660)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

a base for playersprite gender choice

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [May 10, 2022, 10:22pm UTC](https://forum.makecode.com/t/choose-playersprite/13499/2 "2022-05-10T22:22:11Z")

</div>

> **[choose playersprite](https://arcade.makecode.com/47737-26528-13202-37896)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Your main code (the player choosing part) was in the on start which is not a great idea especially the way you did it as the on start only runs once (On start runs on start (what a surprise right?)) I made them into A/B and you can switch between characters! The (If(mySprite2) then delete mySprite2) is here to check if mysprite2 (girl) exists and if it does it gets removed so its only the boy (same the other way around).

> **[choose playersprite](https://arcade.makecode.com/19831-38929-53217-09864)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

But still the easiest way to do this is like this! Make a sprite and make it moveable in On Start and change the image of it when A/B is pressed! I hope this helps to make your future codes a bit simpler! (Believe me simple codes are awesome! Imagine you look at a project you did a long time ago and want to code on it but the code is so confusing (I talk with experience) I made Among Us not once but twice and always failed because my code was too big and too complicated… I had everything! Animations for 7 other players and you, 5+ Skins, 8+ hats, 8+ pets and many colors! I had AI the full map and even did some sort of task system… I made killing and venting and also had voting in work… Then I clicked on JavaScript to remove an extension or something and I couldnt get it back to blocks because it was too much to convert… Rip many hours of my life  
Anyway I hope this helps and have a great day!

---

<div class="post-metadata">

**Author:** ![Wrath\_N\_Beans](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wrath_n_beans/32/5351_2.png) [@Wrath\_N\_Beans](https://forum.makecode.com/u/Wrath_N_Beans)\
**Post date:** [May 10, 2022, 11:31pm UTC](https://forum.makecode.com/t/choose-playersprite/13499/3 "2022-05-10T23:31:14Z")

</div>

oh, sorry to confuse, yes if that was the only goal, i’d do that. however, i wanted the choosing the sprite thing to be a one time thing for a RPG style game, and meant to use it as a ‘skeleton’ of sorts.  
thanks for the help though!

---

<div class="post-metadata">

**Author:** ![Wrath\_N\_Beans](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wrath_n_beans/32/5351_2.png) [@Wrath\_N\_Beans](https://forum.makecode.com/u/Wrath_N_Beans)\
**Post date:** [May 10, 2022, 11:32pm UTC](https://forum.makecode.com/t/choose-playersprite/13499/4 "2022-05-10T23:32:04Z")

</div>

here’s the latest version:

> **[choose playersprite](https://arcade.makecode.com/82780-69728-35692-59565)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
