PHYSICS BUG with NODE WEBKIT EXPORT

Bugs will be moved here once resolved.

Post » Thu Aug 14, 2014 4:00 pm

Problem Description
____ A concise description of your problem here ____

When you export a program that uses physics to NODE WEBKIT, the behavior of the physics changes with WINDOW SIZE. When the window is small, they physics gets greatly accelerated, chancing the behavior of your game considerably. The exact same game, when run in a browser, side-by-side, with the same changes in window size does NOT have this flaw.

Attach a Capx
____ Upload a Capx to this post ____

I used the standard demo "PARTICLE THRUSTER" to test this (and make sure it wasn't my code that was doing it). Just export that standard demo as NODE WEBKIT for windows.

Description of Capx
____ Concise description of what this CapX does ____

Again, I used a standard demo file - no need to describe the code.

Steps to Reproduce Bug
  • Step 1: Run the PARTICLE THRUSTER demo using a standard browser. The ship moves around smoothly based on the damping and mass that was set in the code. You can resize the window all you want and the ship behaves the same. Make it full screen, make it tiny - the game looks and feels the same, just a different size.

  • Step 2: Run the PARTICLE THRUSTER demo using a NODE WEBKIT export. At the default size, it seems to work the same. But... if you make the window small, the physics starts to get faster and faster, to the point where a tiny window has CRAZY FAST physics. Also, if you go FULL SCREEN it runs a little slow. Somehow the physics is changing with screen size. This means you can't predict what you game will look and feel like in a NODE WEBKIT export because you don't know what window size the user will employ. This problem does NOT happen in standard browser mode.

  • Step 3 etc: You can even run the two versions side by side (Browser and Webkit), adjust window sizes, and watch the webkit version become unplayable when the window gets small, while the Browser version is totally fine.

Observed Result
____ What happens? ____

Expected Result
____ What do you expect to happen? ____

Affected Browsers
  • Chrome: (YES/NO)
  • FireFox: (YES/NO)
  • Internet Explorer: (YES/NO)

Operating System and Service Pack
____ Your operating system and service pack ____

I only tested in WINDOWS.

Construct 2 Version ID
____ Exact version ID of Construct 2 you're using ____

I'm using beta r176 (because you can't do multiplayer in Webkit in the standard release version).
B
11
S
2
Posts: 19
Reputation: 889

Post » Thu Aug 14, 2014 4:32 pm

Does this reproduce in r177?
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Fri Aug 15, 2014 1:28 pm

Closing as can't reproduce in r177, works identically at any window size here. Also the report is confusing: it sounds like you are referring to the Physics behavior, but the Particle Thruster demo does not use the Physics behavior at all, it uses the Custom Movement behavior.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Fri Aug 15, 2014 1:52 pm

Thanks ASHLEY... I upgraded to r177 and the problem is gone! Must have been related to one of the issues solved in 176.
B
11
S
2
Posts: 19
Reputation: 889


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests