[request] Enable/Disable Physics

0 favourites
  • 5 posts
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • Can we please have the ability to enable/disable the physics behavior during runtime? My player needs to be able to switch between the physics behavior and platform behavior at any time. A separate object could be used but this would be much more convenient.

  • I ended up recreating the platform behavior by using physics, using a lot of onGround, isMoving type variables. I've got a live demo of it embedded here in the middle of this page http://crudepixel.com/2012/12/making-games-prototyping-pt2/

  • Manual]Physics actions: Global settings

    These actions affect Physics behaviors in general, not just the one it was set for.

    Enable/disable collisions

    By default, all Physics objects collide with each other. You can disable collisions between the object and another Physics object so they pass through each other. This affects all instances of both object types. Note: enabling collisions again when objects are overlapping can cause instability in the simulation.

    Perhaps in conjunction with setting the objects with physics to immovable it could be close enough to enabling/disabling ?

    IIRC, there was an example of switching between physics and platform behavior that was quite a while ago and is listed in the how do I FAQ (link in my signature).

  • Hmm well my player is well into development with the platform behavior already. I just wanted to tack on the physics behavior for a grappling hook/swing since it'd be much easier than hacking up the platform behavior for that. I've found a few non-physics grappling hook examples but nothing really cuts it :\ I just did a few tests with the physics behavior and that didn't turn out very well either. Hrm..

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I would really like to check out your demo, but I am getting a 404 error in Chrome. Is it still on there?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)