V
VeSo
Guest
Heyall, I'm trying to skip the trigonometry because it's just not working for me regarding all the different negative numbers i'm working with.
I want to jump from x,y1 at an angle (direction) of 280 degrees and 100 pixels in said direction in order to land on x,y2.
I cannot for the life of me figure this out. You would imagine it requires some kind of code that does this:
position_direction_add code (position x,position, y, direction, amount)
Obviously no such function exists so I'm stuck with lengthdir.
The problem is lengthdir_x and lengthdir_y are asking me for values I won't know. (A squared + B squared = C sqrd)
So in short, I just want to add a certain length in a direction.
Thanks!
I want to jump from x,y1 at an angle (direction) of 280 degrees and 100 pixels in said direction in order to land on x,y2.
I cannot for the life of me figure this out. You would imagine it requires some kind of code that does this:
position_direction_add code (position x,position, y, direction, amount)
Obviously no such function exists so I'm stuck with lengthdir.
The problem is lengthdir_x and lengthdir_y are asking me for values I won't know. (A squared + B squared = C sqrd)
So in short, I just want to add a certain length in a direction.
Thanks!
Attachments
-
27.5 KB Views: 0