moving images at angles

BlitzMax Forums/BlitzMax Beginners Area/moving images at angles

Get the angle with
Angle=Atan2(ToY-FromY,ToX-FromX)


and then move it by

X:+Cos(Angle)*Speed
Y:+Sin(Angle)*Speed


Of course, your position variables will need to be floating point to keep everything smooth.