Motion add

Explanation
This function will add a motion in the direction dir at the speed speed to the current motion of the instance. The following image should make this clear:



Example
Let say we used motion_set(90,5); in the create event and motion_add(10,20); inmouse left click event - instance direction and speed will become 100,25 at first click, 110,45 at second click etc.

motion_add(-10,20); //Change instance direction -10 degrees clock wise and add 20 to the current speed.

Note: This is not exactly correct as in fact these are vector additions.