F
Fernando Jr. Talingdan
Guest
Hey everyone, I'm currently making a character out of ragdoll with the built-in physics of GMS 1.2.1130. I'm having a problem on changing the variables of a certain joint that was created even though I've made a variable within it. I can't seem to find any GMS tutorials about physics that can help me with this.
Here is the creation code for the object
And I want it to change speed whenever I press a button and make the object go up or down, but whenever I do that nothing happens.
Code:
var_speed = 0;
hip=self
left_leg=instance_create(x,y,obj_leg)
physics_joint_prismatic_create(left_leg,hip,x,y,0,1,-20,20,true,100,var_speed,true,false);
And I want it to change speed whenever I press a button and make the object go up or down, but whenever I do that nothing happens.