I'm working on a stealth/action shooter game a bit like Counter Strike 2D meets Metal Gear. I have a few problems:
1) Enemy Moving
I use the Step Avoiding code to make the computer players move towards their target. The problem is that the computers are brain dead. If they have a wall in the way of their target, they just keep ramming into it. These tight corners are essential as the map is a Dilert-esque office. The code is:
if not priority = 2 or point_distance(x,y,targetx,targety) > 25 then {
mp_potential_step_object(targetx,targety,priority,object_solid)
image_speed = priority/3 }Also, I make the enemies always look towards their objective, but it would be really good if they were actually looking where they were going. I can't do this using the 'direction' variable since the enemies use steps. Is there another way of doing this?
2) Bullets
I want the bullets, instead of being dots, to be lines that instantly fire off and stop at the first solid they meet. Is there a way to do this?
Thanks very much.











