Yeah… it can be a long and sought out process to do it… Basically it’s like this…
Lemme show you a life example…
Angle = 25 degrees
Force = 80 power
Allright now… In calculus I learned about a unit circle… Pretty much this states that a circle is 1 unit round all around it… Which means it has a radius of 1 unit. On this method… Such angles like 90 degrees were easy to figure out… Likewise with this situation…
Lemme show you an image of the line at 25 degrees (close at least… hehe)

This here shows you the basic of it… Sorry didn’t feel like being artsy… As you can see… We have ourselves a line… Woop-di-do… Right? wrong… You can figure out how much you need to do everything into by this next image…

See the orange and teal lines? Those are the two lines that will help us figure out how much of an x and y we need to put… We will just multiply those numbers by a certain number we get from the force then to figure out our final two ending x and y numbers.
So we know the following… The angle is 25 degrees and because we are doing this on a unit circle the length of the longest line… The blakc line… Is 1 unit… Now alls we need is to find the other two sides… Take a look at this equation.
[COLOR=red]
sin 25 degrees = opposite side from angle / 1 unit;
[/COLOR]
Thus you can say that…
[COLOR=red]
sin 25 degrees = opposite side from angle
[/COLOR]
If you figure this out you get that the opposite side of the angle will be : [COLOR=red] .4226… [/COLOR]
Now that you have the opposing side’s length… Now alls you have to look foris the adjacent side’s length… Well Use this this equation…
[COLOR=red]
cos 25 degrees = adjacent side from angle / 1 unit;
[/COLOR]
Thuis you can say that…
[COLOR=red]
cos 25 degrees = adjacent side from angle
[/COLOR]
If you figure this little bit of code out you find out the the length of the adjacent side will be: [COLOR=red] .9063… [/COLOR]
Now… You may ask… What can you get out of those two numbers… Well it is simple… Just make unit = pixel and you to go to that point you need to go right .9063 of a pixel and up -.4226 of a pixel… Unfortunately… You gotta remember the axis on flash is backwords for the y… Blah. That can be a pain can’t it? lol…
Now… We have equations to find the starting x and y directions… BUT WAIT… There is more… Cause that would be the same distance over and over and would make a for a dull game to have weak power like that all aorund… So… How to implement a force into your game…
So… After you figure out which decimals you have for your x and y’s… Let’s add something to this…
We chose a force of 80 power… Now if you think about this… That’s alot of power to put as 80 pixels so… let’s chop it down by 10…
80 / 10 = 8. 8 pixels seems alot. And I mean alot mroe manageable… Now… Let’s multiply this new number by the decimal numbers we had earlier to get the final number amounts…
x = x * 8;
y = y * -8; (Notwe… Since it won’t automatically make your y a negative… We want to multiply it by a negative amount of force…)
newx = .9063 * 8;
[COLOR=red] newx = 7.2504 [/COLOR]
newy = .4226 * -8;
[COLOR=red] newy = -3.3808 [/COLOR]
Therefore… You’re new bullet will travel each frame at a rate of 7.2504 in the x direction and -3.3808 in the y direction…
I’m pretty sure you can apply a couple of variables to what I just said and work it out with your game…
Good Luck And I hope this Helped
<:} <:} Marz <:} <:}