OFFICIAL Physics In GameMaker Studio 2 - Part 3

rmanthorp

GameMaker Staff
Admin
GameMaker Dev.
Part 3 of 4 "Physics In GameMaker Studio 2" covers physics worlds and physics joints.

In this part of out mini-tutorial series about physics in GameMaker Studio 2, we are going to explore joints, advanced physics world functions, and debug drawing. If you haven't already read through the previous parts of this series, you can find them from the following links:

These previous tech blogs are not essential for completing this one, but if you haven't used physics before in GameMaker Studio 2 then it is highly recommended that you give them a read through before continuing.

SET UP THE PHYSICS WORLD
in this article, we are going to start from scratch so create a new GML project and call it "Physics Joints" or something similar. Now, open the room editor for "Room0", and set the background layer colour to dark grey (you'll see why later), then close the room editor. We aren't going to use the physics tab in the editor to set up the physics world (like we did in the previous tech blogs), but instead we are going to do it in code.
https://www.yoyogames.com/blog/71/physics-in-gamemaker-studio-2-part-3
 
Top