Direction collision

Hi. For my current project I have and enemy that absorbs the player into it using the built in direction and speed variables.
CEDF57A2-3A9F-4A2F-9A4D-D54CE64EECEE.jpeg
However, with this system the player is sometimes pulled into walls. Wall collisions check a horizontal and vertical speed variable. Is there a way to say:
Code:
Instance_place(direction and speed next point,obj_wall)
40573F5B-64E6-4747-ADE9-44737C8F2492.jpeg
 

FrostyCat

Redemption Seeker
The next point is (x+lengthdir_x(speed, direction), y+lengthdir_y(speed, direction)).

Look up these functions in the Manual and learn how they work. They show up regularly when converting from polar coordinates to rectangular coordinates.
 
Top