# BasketBall

**URL:** <https://forum.makecode.com/t/basketball/4258>\
**Category:** Arcade\
**Tags:** game\
**Created:** [November 3, 2020, 7:08pm UTC](https://forum.makecode.com/t/basketball/4258 "2020-11-03T19:08:45Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 3:23pm UTC](https://forum.makecode.com/t/basketball/4258/21 "2020-11-12T15:23:55Z")

</div>

But I have one question, how do you make a spite change to a different spite to make it look like it is acutely moving?

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [November 12, 2020, 3:52pm UTC](https://forum.makecode.com/t/basketball/4258/22 "2020-11-12T15:52:44Z")

</div>

Are u talking about an image changer for sprites?

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 3:57pm UTC](https://forum.makecode.com/t/basketball/4258/23 "2020-11-12T15:57:56Z")

</div>

yes, but I have figured it out, here is the preview of my game [https://makecode.com/\_AcyWWoDfLL4h](https://makecode.com/_AcyWWoDfLL4h)

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [November 12, 2020, 4:00pm UTC](https://forum.makecode.com/t/basketball/4258/24 "2020-11-12T16:00:32Z")

</div>

Question: Why would I (or anyone else) want to stop the animation?

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [November 12, 2020, 4:01pm UTC](https://forum.makecode.com/t/basketball/4258/25 "2020-11-12T16:01:27Z")

</div>

Sorry- The way I worded that seems a bit rude sounding. I’m not trying to be rude or mean-

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 4:05pm UTC](https://forum.makecode.com/t/basketball/4258/26 "2020-11-12T16:05:28Z")

</div>

It is because t is constantly moving in that animation

---

<div class="post-metadata">

**Author:** ![UnderwaterAstronaut](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/underwaterastronaut/32/2228_2.png) [@UnderwaterAstronaut](https://forum.makecode.com/u/UnderwaterAstronaut)\
**Post date:** [November 12, 2020, 4:31pm UTC](https://forum.makecode.com/t/basketball/4258/27 "2020-11-12T16:31:05Z")

</div>

You can set it so that you have a variable called moving and you set moving to if left, right, up, down, and A button is pressed. Then you can have an on game update where if you’re not moving then you can put in the code “stop all animations”

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 4:37pm UTC](https://forum.makecode.com/t/basketball/4258/28 "2020-11-12T16:37:51Z")

</div>

Ok thanks

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [November 12, 2020, 4:38pm UTC](https://forum.makecode.com/t/basketball/4258/29 "2020-11-12T16:38:24Z")

</div>

You should use Richard’s character animations extension. It will automatically start and stop animations for you.

> **[riknoll/character-animations](https://github.com/riknoll/character-animations)**
>
> Contribute to riknoll/character-animations development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 4:41pm UTC](https://forum.makecode.com/t/basketball/4258/30 "2020-11-12T16:41:14Z")

</div>

Ok, great!!!

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 5:25pm UTC](https://forum.makecode.com/t/basketball/4258/31 "2020-11-12T17:25:47Z")

</div>

I will continue working on it, but here it is [Here it is](https://makecode.com/_TrcXujVy5dsp)

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 6:27pm UTC](https://forum.makecode.com/t/basketball/4258/32 "2020-11-12T18:27:05Z")

</div>

After I am finished making the WHOLE game,  
does anyone want to try and edit it to make it a  
2 player game

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [November 12, 2020, 8:22pm UTC](https://forum.makecode.com/t/basketball/4258/33 "2020-11-12T20:22:32Z")

</div>

I could help

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 12, 2020, 8:54pm UTC](https://forum.makecode.com/t/basketball/4258/34 "2020-11-12T20:54:45Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 13, 2020, 9:55pm UTC](https://forum.makecode.com/t/basketball/4258/35 "2020-11-13T21:55:55Z")

</div>

Underwater Astronaut, are you there???

---

<div class="post-metadata">

**Author:** ![UnderwaterAstronaut](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/underwaterastronaut/32/2228_2.png) [@UnderwaterAstronaut](https://forum.makecode.com/u/UnderwaterAstronaut)\
**Post date:** [November 13, 2020, 10:00pm UTC](https://forum.makecode.com/t/basketball/4258/36 "2020-11-13T22:00:27Z")

</div>

yes, do you need something?

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 13, 2020, 10:53pm UTC](https://forum.makecode.com/t/basketball/4258/37 "2020-11-13T22:53:23Z")

</div>

yes, you helped me on my game so you can be the first to play the FULL game [Here you go](https://makecode.com/_ExhEkLFtJgYL)

---

<div class="post-metadata">

**Author:** ![UnderwaterAstronaut](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/underwaterastronaut/32/2228_2.png) [@UnderwaterAstronaut](https://forum.makecode.com/u/UnderwaterAstronaut)\
**Post date:** [November 13, 2020, 11:57pm UTC](https://forum.makecode.com/t/basketball/4258/38 "2020-11-13T23:57:08Z")

</div>

Alright so I played the game and after, I looked at the code!  
The game play is good! however you really only have one enemy following you and when they die, no other enemies follow you. When looking at the code, I realized that you set every enemy individually making a really long code. Instead of that, you can set the code to this  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ef0f50d948e109b18486cd91704a27211ff75fb6.png)  
This will make as many enemies as you want with only little bits of code! (you only need 4 blocks the 5th one was just for testing!)

And looking at your code a bit more, you don’t need to put `move ___ with buttons` for every button pressed, you only need to place it at the start!  
This might help clean up your code a bit more!  
also I couldn’t really pass level two yet but im working on that 😅  
update: passed it! Level 3 is a bit difficult however because of the blue block thingy! could you check that out please?

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 14, 2020, 12:10am UTC](https://forum.makecode.com/t/basketball/4258/39 "2020-11-14T00:10:00Z")

</div>

Sure, and thank you for letting me know how my game is

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 14, 2020, 12:10am UTC](https://forum.makecode.com/t/basketball/4258/40 "2020-11-14T00:10:46Z")

</div>

but can you send me the code you edited???

[Previous page](https://forum.makecode.com/t/basketball/4258.md?page=1)

[Next page](https://forum.makecode.com/t/basketball/4258.md?page=3)
