# Fire bullet diagonal

**URL:** https://forum.kirupa.com/t/fire-bullet-diagonal/192702
**Category:** flash
**Created:** [June 30, 2006, 10:52am UTC](https://forum.kirupa.com/t/fire-bullet-diagonal/192702 "2006-06-30T10:52:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dwight](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@Dwight](https://forum.kirupa.com/u/Dwight)
#### Post date: [June 30, 2006, 10:52am UTC](https://forum.kirupa.com/t/fire-bullet-diagonal/192702/1 "2006-06-30T10:52:58Z")

</div>

Hi everybody 🙂  
I’m making a little flashgame (or i’m trying :te:)…  
anyway’s I made a top view of a slingshot, wich is controlled by the left and right key of your keyboard. When you press those keys it will rotate from 0 to 40 degrees and 0 to -40 degrees.

Here is where the problem starts, I want it to fire a bullet. But I want it to fire diagonal based on the degrees where the slingshot currently is… :h:  
Is there someone who can help me? Or atleast someone who can push me into the right direction??

Please advise… Thanks in advance!

Dwight
