# Bug with shooting

**URL:** <https://forum.makecode.com/t/bug-with-shooting/7274>\
**Category:** Help\
**Created:** [April 9, 2021, 1:48am UTC](https://forum.makecode.com/t/bug-with-shooting/7274 "2021-04-09T01:48:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danscotty](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Danscotty](https://forum.makecode.com/u/Danscotty)\
**Post date:** [April 9, 2021, 1:48am UTC](https://forum.makecode.com/t/bug-with-shooting/7274/1 "2021-04-09T01:48:18Z")

</div>

Whenever I shoot left and shoot again for the second one it shoots right instead can you please help me and send me the code here is the link: [https://makecode.com/\_1aHCpJChjXYj](https://makecode.com/_1aHCpJChjXYj)

---

<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:** [April 9, 2021, 5:08pm UTC](https://forum.makecode.com/t/bug-with-shooting/7274/2 "2021-04-09T17:08:31Z")

</div>

You kinda reset the character! You shoot left when you are looking left! You set to look forward on shoot! So just remove the animate part in the On B Pressed!

> **[Pixel Mortal combat](https://arcade.makecode.com/87614-91635-85166-23077)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Danscotty](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Danscotty](https://forum.makecode.com/u/Danscotty)\
**Post date:** [April 9, 2021, 6:58pm UTC](https://forum.makecode.com/t/bug-with-shooting/7274/3 "2021-04-09T18:58:33Z")

</div>

But what if you want to keep the animate?

---

<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:** [April 9, 2021, 8:28pm UTC](https://forum.makecode.com/t/bug-with-shooting/7274/4 "2021-04-09T20:28:51Z")

</div>

Well it shoots left when the caracters Image is looking left! You reset it to look somewhere else! You would need to make a variable with: LookingLeft true , LookingRight false !

---

<div class="post-metadata">

**Author:** ![Danscotty](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Danscotty](https://forum.makecode.com/u/Danscotty)\
**Post date:** [April 9, 2021, 9:14pm UTC](https://forum.makecode.com/t/bug-with-shooting/7274/5 "2021-04-09T21:14:42Z")

</div>

Another bug the other character always has the same picture as the first one can you help me with it? here is the link: [https://makecode.com/\_7pD7od8Ts8Ai](https://makecode.com/_7pD7od8Ts8Ai)

---

<div class="post-metadata">

**Author:** ![Danscotty](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Danscotty](https://forum.makecode.com/u/Danscotty)\
**Post date:** [April 9, 2021, 9:15pm UTC](https://forum.makecode.com/t/bug-with-shooting/7274/6 "2021-04-09T21:15:52Z")

</div>

Im not really good at if else statements so can you help me with that
