How do I Speed Up Physics for Procedural Map Generation

  • I want to speed up the physics, or speed up the games clock, so that I can get my physics based procedural generation to complete faster. Anyway to do that?

    It's a bit slow because I spawn 100 rooms and wait for them to stay still. I just want to speed that up.

    This is just the first part to generating the map. I hope to make hallways to connect big rooms together, then apply tiles to it. We'll see how this comes together.

    Demo:

    Right-click to restart Layout.

    https:// dl.dropboxusercontent. com/u/103945751/PhysicsProceduralGeneration/index.html

    capx:

    https:// dl.dropboxusercontent. com/u/103945751/PhysicsProceduralGeneration/Physics%20Procedural%20Generation.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi DurandalCorp

    First of all be careful your link is tricky because there are spaces in it, here is the right one :

    https://dl.dropboxusercontent.com/u/103 ... index.html

    It is a very interesting matter here. Did you try to use the "Set time scale" system action ?

    Vega

  • Thanks for replying. I've just tried increasing the time scale. It seems that the physics is what is limiting the speed.

    After some testing, it seems if you increase the spread then the rooms don't have to push on each other that much and results in better snapping times.

  • I don't know how you exactly want to use this system here but I actually found that the spreading of the rooms is kind of beautiful ahah. Also, if you really want to hide it why don't you do something like hiding the screen as long as the rooms keep moving, and "unhide" it as soon as everything stopped ?

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