Legacy GM making objects move in a straight line

U

Umut

Guest
Hi guys, I have an obj_player which creates a obj_rope then he follows it around. when he is not in collision with the rope he falls that's good so far, the problem is I can't get it to stay ONLY on the rope after it collides with it because i use direction = other.image_angle; to move him around....I've only been using GM for the last 2 months. still learning.

I really need help with this problem.I have been searching everywhere but I could't find what I really need. Help will be appreciated.
 

obscene

Member
I can't figure out how direction=other.image_angle could be how you move around, so you might need to post some code to explain your setup.

However, you might can just shortcut this by setting the player x to the rope x every step if he's on it.
 
U

Umut

Guest
I can't figure out how direction=other.image_angle could be how you move around, so you might need to post some code to explain your setup.

However, you might can just shortcut this by setting the player x to the rope x every step if he's on it.
player movement step event:
image_angle=point_direction(x,y,mouse_x,mouse_y)
image_speed =0.6;

global left btton event : speed =+7+2;
direction = other.image_angle;
friction =2;


how can i set player x to the rope x?
 
Top