Enable/Disable Physics collisions bug in R79.4

0 favourites
  • 4 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Hi there, <img src="smileys/smiley1.gif" border="0" align="middle" />

    i found a small bug when I use the enable/disable collision feature. I'd like to put my capx, but it's my entire project, so i'll put a small capx example if necessary (but maybe the answer to shis problem is obvious, so...). The bug appears when I try to restart my layout on runtime (and it is caused by the enab/disab feature because I tried without, and it works well).

    Steps to reproduce :

    I have 2 physic objects on my scene, a "ship" and a "ghost".

    In my event sheet, in my "on start layout" I do this :

    1- destroy the ghost,previously drag and dropped in my scene

    2 - create the ghost on my main layer, in x :-10, y :-10

    3- disable its collision with another object called "ship" (the ship is drag and dropped in my scene)

    4 - set the ghost to 0?

    5 - make it immovable

    Later in my game, when I press a keyboard touch, the ghost is placed on my ship, put it in movable, and projected with an impulse, and the ghost perfectly ignore the ship collision (the ghost is a "trajectory preview").

    But : when i restart my game in runtime (reset layout), the game freezes. On the Chrome output, I have the following error :

    <font color=red>Physics_behavior.js:1593Uncaught TypeError: Cannot call method 'add' of undefined</font>

    I'm a bit familiar with programming, but I don't understand this.

    Tell me if my example is not clear enough, i'll make a special capx to illustrate.

    My config : windows 7, chrome 17, 64bits and Canvas 2D only.



  • Try Construct 3

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

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

    someone else has this bug ?

    This is a small .capx to illustrate, all you have to do is push "R" on keyboard to restart (reset layout) during game, and see the freeze.

    With Chrome output feature, you can see more details (right click > inspect > console).

    Here's the link :


    Thx !


  • This should be fixed in the next build, hopefully out shortly!

  • Ok thx <img src="smileys/smiley1.gif" border="0" align="middle" />

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