GameMaker: Studio

GameMaker: Studio

View Stats:
supware Jun 27, 2018 @ 2:20pm
Enabling/disabling physics collisions?
Is there a nice way to turn collisions on and off in-game with the physics engine? For instance, pressing a button to push a block into the background

I'm very new to the physics functions so any help is much appreciated :)
< >
Showing 1-2 of 2 comments
The Winter Bud Jun 27, 2018 @ 9:42pm 
Basic Physics Tutorial

That's usually the go to tutorial that get's linked to anyone looking to get into the physics engine. I thought I'd link it and get it out of the way.

Documentation[docs.yoyogames.com] on all functions related to the physic's engine

Using this physics variable phy_active[docs.yoyogames.com] you can turn on and off the physic's acting for any instance, parent or all objects for that matter.

For larger scale tweeking you can create your own world but that is a much larger scope that I can not get into and warrents a major study on the internet.

For fun you can learn physics while trying your hand at this Build your own billards game
Last edited by The Winter Bud; Jun 27, 2018 @ 9:45pm
supware Jun 27, 2018 @ 11:56pm 
Thank you! phys_active is exactly what I was after
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jun 27, 2018 @ 2:20pm
Posts: 2