• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Applying sprites to physics joints?

M

mastmartelli

Guest
I'm new to learning physics and I'm trying to create an object with two different fixtures to create a revolute joint. I'm trying to do all of this through one object with no sprite assigned. Is there anyway to assign each joint a separate sprite? If so, what would be the easiest way of doing so?
 

Jezla

Member
You can save the joint id in a variable. You can then use the physics_joint_get value() function to get info from the joint, such as the anchor x and y, and use that to draw a sprite.
 
Top