# Problem with my projectile shooting in my top down game

**URL:** https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080
**Category:** Canvas / Gaming
**Created:** [April 27, 2022, 10:29pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080 "2022-04-27T22:29:55Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![baumgand000hvgx](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@baumgand000hvgx](https://community.thunkable.com/u/baumgand000hvgx)
#### Post date: [April 27, 2022, 10:29pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/1 "2022-04-27T22:29:56Z")

</div>

I’m currently making a top down game and you are able to fire projectiles with a button at the bottom of the screen. However, while making the projectile fire right when your facing right and down when your facing down, the code just doesn’t seem to work for left and up. I set th projectile’s speed to negative as well and it just won’t even shoot it anywhere. Please help!

 ![image_2022-04-27_173055673](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d02c7dcce8d980a81e52277a380cb29a3e779944.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 27, 2022, 11:07pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/2 "2022-04-27T23:07:51Z")

</div>

Please share a link to the project. It’s hard to troubleshoot this without having access to it.

---

<div class="post-metadata">

### Author: ![baumgand000hvgx](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@baumgand000hvgx](https://community.thunkable.com/u/baumgand000hvgx)
#### Post date: [April 28, 2022, 12:19am UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/3 "2022-04-28T00:19:27Z")

</div>

[https://x.thunkable.com/projects/62602cd0c6a9b60012733504/c8c0388a-9cfb-4625-a333-0a8e2d85cd14/blocks](https://x.thunkable.com/projects/62602cd0c6a9b60012733504/c8c0388a-9cfb-4625-a333-0a8e2d85cd14/blocks)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 28, 2022, 2:03am UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/4 "2022-04-28T02:03:09Z")

</div>

Any time I have an IF condition that doesn’t seem to be working, I try to isolate the values on either side of the operator (=).

If you try these blocks, I think you’ll see that the values you’re checking for are not the values you’re getting:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/797c9c74aab4a253d0451b6e5d52944159984047.png)

---

<div class="post-metadata">

### Author: ![baumgand000hvgx](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@baumgand000hvgx](https://community.thunkable.com/u/baumgand000hvgx)
#### Post date: [April 28, 2022, 12:47pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/5 "2022-04-28T12:47:00Z")

</div>

Thank you for the help, I’ll try it out. However I’ve never used label blocks before so I hope I do it right.

---

<div class="post-metadata">

### Author: ![baumgand000hvgx](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@baumgand000hvgx](https://community.thunkable.com/u/baumgand000hvgx)
#### Post date: [April 28, 2022, 12:49pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/6 "2022-04-28T12:49:51Z")

</div>

Ok I’m already stuck (lol). What does label 1 count as? A sprite?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 28, 2022, 1:09pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/7 "2022-04-28T13:09:51Z")

</div>

Label 1 will show the angle in the direction `sprite3` is heading. You change the direction of the sprite by changing it’s angle.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 28, 2022, 1:51pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/8 "2022-04-28T13:51:40Z")

</div>

Label1 is just a label component. It has nothing to do with the Canvas.

There are Canvas Labels in Thunkable as well but I chose not to use one.

---

<div class="post-metadata">

### Author: ![baumgand000hvgx](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@baumgand000hvgx](https://community.thunkable.com/u/baumgand000hvgx)
#### Post date: [April 28, 2022, 4:44pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/9 "2022-04-28T16:44:24Z")

</div>

Ok I didn’t really get this at first, but now that I used it I figured out why it wasn’t working! Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [July 27, 2022, 4:45pm UTC](https://community.thunkable.com/t/problem-with-my-projectile-shooting-in-my-top-down-game/1852080/10 "2022-07-27T16:45:17Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
