T
THEPHENOM
Guest
Hello,
does anyone know how to return values such as gravity in the current room or if physics are enabled in the current room? I have looked at:
If I trigger the physics_pause_enable(bool) function in an room that doesn't have physics enabled, it produces an Error.
does anyone know how to return values such as gravity in the current room or if physics are enabled in the current room? I have looked at:
- https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/physics/the physics world/index.html
- https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/rooms/general/index.html
Code:
if(room_has_physics(room)==true) {
physics_pause_enable(true);
}