Im having a problem, i think is a mugen bug:
Whanever i put cos on a projectile vel x it just rotates the projectile horizontally...
Here is a piece of the code(is a helper):
;angle multiplier is used to calculate the angle
[State 0, AngleMul]
type = Varset
trigger1 = time=0
v=1
value = 9;random%32
[State 0, vel x]
type = VarSet
trigger1 = time=1
fv = 2
value = cos(((var(1)*(11.25))*pi)/180)
[State 0, vel y]
type = VarSet
trigger1 = time=1
fv = 3
value = -sin(((var(1)*(11.25))*pi)/180)
[State 0, ARROW]
type = Projectile
trigger1 = time >= 55
trigger1 = time <= 100
trigger1 = (time%30) = 0
postype = p1
projanim =16300+var(1);ANIMATION OF SPRITE AT 101.25°(16300 is at 0° 16309 is 101.25°)
projhitanim = 1998
projpriority = 1
projheightbound = -240, 100
projedgebound = 100
projscale=1,1
ProjHits = 1;fvar(2)
velocity =3*fvar(2),3*fvar(3)
offset = -64,-32
attr = S,na
damage = 30,15
animtype = heavy
guardflag = MA
hitflag = MAFDP
pausetime = 0,0
hitsound = s4000,5
sparkxy = 0,0
guardsound = s4000,6
ground.type = low
ground.slidetime = 0
ground.hittime = 0
ground.velocity = 0
air.animtype = Back
air.velocity = 0,0
air.fall = 0
palfx.time = 3
palfx.add = 248,56,0
Note: i tested a few more times and this only happens on angles from (90,270)