Enable/Disable Physics collisions bug in R79.4

Bugs will be moved here once resolved.

Post » Fri Feb 24, 2012 12:26 pm

Hi there,
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 :

Physics_behavior.js:1593Uncaught TypeError: Cannot call method 'add' of undefined

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.
Thx!

Romaincdrom12012-02-24 12:30:56
B
11
S
4
G
3
Posts: 13
Reputation: 2,069

Post » Mon Feb 27, 2012 12:11 pm

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 :
http://dl.free.fr/rud4E5uQv

Thx !

Romain
B
11
S
4
G
3
Posts: 13
Reputation: 2,069

Post » Mon Feb 27, 2012 6:26 pm

This should be fixed in the next build, hopefully out shortly!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sat Mar 03, 2012 9:02 am

Ok thx
B
11
S
4
G
3
Posts: 13
Reputation: 2,069


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest