Sine value to change height of a physics object

Bugs will be moved here once resolved.

Post » Sun May 25, 2014 4:54 am

Problem Description
Program crashes after some time when using the sine property to change the height of a physics object. The more objects in the layout, the quicker it crashes.

Attach a Capx
Done

Description of Capx
Simple Capx with just two layouts and 1 object

Steps to Reproduce Bug
  • Play layout
  • wait
  • program crashes

Observed Result
The following error message is displayed:
Javascript error!Uncaught Assertion: Cannot enlarge memory arrays in asm.js. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value, or (2) set Module.TOTAL_MEMORY before the program runs.http://localhost:50000/Physics_behavior.js, line 9 (col 21)This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

Expected Result
For the objects to change height according to the sine behaviour of the object without any problems

Affected Browsers
  • Chrome: YES
  • FireFox: YES
  • Internet Explorer: YES

Operating System and Service Pack
Windows 8

Construct 2 Version ID
168 (64 bit)
You do not have the required permissions to view the files attached to this post.
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920

Post » Mon Aug 22, 2016 7:26 am

Hello Vegamon007! Did you (or anybody else) find a solution? My problem looks very similar.

viewtopic.php?f=147&t=180827
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Mon Aug 22, 2016 8:27 am

Hi @tomi71. I never got a response from anyone from Scirra so I'm afraid the problem was left unresolved..
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920

Post » Mon Aug 22, 2016 9:59 am

Just got a response to my own problem and it might work for you too. It is:

In the project properties change "physics engine" to "box2d web"


Just tested my game and it did not crash like it used to. Very similar problem like yours and the error looked very same too.

My problem had to do with sine (size). Example here: viewtopic.php?f=147&t=180827

edit2. Funny how similar your bugtest was to my example. I hadn´t seen this when I made mine.

But the problem persists. The physics engine change didn´t remove the error. I wonder if chipmunk physics would.

I guess the sine with size/height is causing this. :cry:
Last edited by tomi71 on Mon Aug 22, 2016 4:19 pm, edited 2 times in total.
B
29
S
15
G
17
Posts: 137
Reputation: 10,848

Post » Mon Aug 22, 2016 10:03 am

I checked the error and also happened to me.
We have to wait about 2 minutes or so.
However, the bug is closed for no reason?.
@Ashley You could check this? This error exists today.

Image
B
29
S
12
G
21
Posts: 782
Reputation: 14,415


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests