# Projectile Help

**URL:** <https://forum.kirupa.com/t/projectile-help/314059>\
**Category:** programming\
**Created:** [September 17, 2010, 4:21am UTC](https://forum.kirupa.com/t/projectile-help/314059 "2010-09-17T04:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rifts1103](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rifts1103](https://forum.kirupa.com/u/Rifts1103)\
**Post date:** [September 17, 2010, 4:21am UTC](https://forum.kirupa.com/t/projectile-help/314059/1 "2010-09-17T04:21:00Z")

</div>

I have this code to add my missile to the screen

```php
// SHOOTING
function Shoot(event:MouseEvent)
{
			
			var newMissile:Missile = new Missile();
			// set direction
			newMissile.dx = Math.cos(Math.PI*character_mc.rotation/180);
			newMissile.dy = Math.sin(Math.PI*character_mc.rotation/180);
			
			// placement
			newMissile.x = character_mc.x;
			newMissile.y = character_mc.y;
	
			// add to stage and array
			addChild(newMissile);
			missiles.push(newMissile);
		
		
}

```

it adds right where my character is but I cant seem to figure out how to get the missile to actual move in the direction the character is facing.

heres how it looks  
[http://megaswf.com/serve/48464/](http://megaswf.com/serve/48464/)
