# Sorry, another gaming prob!

**URL:** https://forum.kirupa.com/t/sorry-another-gaming-prob/96848
**Category:** Uncategorized
**Created:** [December 14, 2003, 4:23pm UTC](https://forum.kirupa.com/t/sorry-another-gaming-prob/96848 "2003-12-14T16:23:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Joysik](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Joysik](https://forum.kirupa.com/u/Joysik)
#### Post date: [December 14, 2003, 4:23pm UTC](https://forum.kirupa.com/t/sorry-another-gaming-prob/96848/1 "2003-12-14T16:23:01Z")

</div>

Ive got this semi-finished game? Anyway…  
It’s got the basics, but i just want to know nothing more but how i could fire a bullet in the correct direction of the ship.  
Would it be something like duplicate a bullet at ships position, then set it to ships \_rotation, then something like:  
[AS] xSpeed += speed_Math.sin(\_rotation_(Math.PI/180));  
ySpeed += speed_Math.cos(\_rotation_(Math.PI/180));  
[/AS] ?  
I need some serious help…

[http://matt.zaaz.co.uk/blasteroids.htm](http://matt.zaaz.co.uk/blasteroids.htm)
