what i am trying to do is get my RTS game, to have basic path finding, mp_path commands, it has a space and ground mode, since space didnt need pathfinding that was great, but now im working on the ground aspects of my RTS, here is what i have got, this is the enemy attack, in a alarm event in the main controller object, it is used with object enemy.
if enemyattack = 1
{ if (!instance_exists (obj_unit))
enemy = 0 else {
enemy = instance_nearest(x ,y,obj_unit ); if point_distance(x ,y,enemy .x,enemy .y) > 1100 {
enemyGoalX = enemy.x +lengthdir_x( 1000,enemydefend);
enemyGoalY = enemy.y +lengthdir_y( 1000,enemydefend);
target_dir = point_direction(x , y, enemyGoalX, enemyGoalY); if speed < enemySpeed speed += 0.5;
} else {
target_dir=point_direction (x, y, enemy.x, enemy.y);
speed *= 0.95; } now i need to add mp_path commands to it, but i am truely stumped on how to, i have had mixed results including jumping ships, and looking like they were on bungee cords, of all things,
please any help will be GREATLY appreciated











