No Revisions Have Been Made To This Page
Can you suggest an edit for this page? Click Here
GML Code Example
When creating a physics system in GameMaker: Studio, it
is often important to have a visual representation of what is
actually happening with an instance. This can be achieved by using
physics_draw_debug, which draws a schematic outline of the
physical properties associated with the instance running the code.
Here is an image of how it looks:
It should be noted that for this to work it must be in
the draw event of the instance, and it will be drawn using the
currently defined draw colour.