I've done this by checking the collision_line_first of each object that should interact with bullets and then checking which is closest to the player object, but that seems a bit clumsy and I'd like to avoid it if there is a simpler way that I seem to be clueless to. If not then I'll do what I have to.
Basically I want something like:
collision_line_first(obj_player.x+lengthdir_x(32,obj_player.direction),obj_player.y+lengthdir_y(32,obj_player.direction),
obj_player.x+lengthdir_x(50000,obj_player.direction),obj_player.y+lengthdir_y(50000,obj_player.direction),(obj_wall_parent OR obj_barrel1 OR ETC),true,true)
...which obviously does not work, I'd just like something that would work like that concept to simplify things.
Thanks everybody!
Edit: On second thought, this might belong in another section, sorry!
Edited by GRS9790, 12 June 2012 - 04:50 PM.











