How do I Speed Up Physics for Procedural Map Generation

Get help using Construct 2

Post » Wed Sep 23, 2015 12:27 am

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
B
5
S
1
Posts: 23
Reputation: 426

Post » Wed Sep 23, 2015 2:47 am

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
B
24
S
5
Posts: 42
Reputation: 1,286

Post » Wed Sep 23, 2015 4:32 am

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.
B
5
S
1
Posts: 23
Reputation: 426

Post » Sat Sep 26, 2015 6:30 am

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 ?
B
24
S
5
Posts: 42
Reputation: 1,286


Return to How do I....?

Who is online

Users browsing this forum: VValt, Yahoo [Bot] and 19 guests