Platform player falling through solid object ?

Discussion and feedback on Construct 2

Post » Mon Mar 26, 2012 1:00 am

So i'm making this game for both web & android, but while testing it on 2 android devices I had this bug that only occured a couple of times (1 out of 10 games).
The player is basically falling through the floor while landing after a jump.
It happens in the browser on the phone aswell as in a packed apk from phonegap.

I did NOT had this bug while testing the game on my PC.

Here is a link to a page which contains both (apk and/or browser version):
http://ohrly.net/demos/game-boing/

Is this a bug, could this be due to some 'framedrops' on the phone or is this badly evented?Wishy2012-03-26 01:01:49
B
22
S
11
G
9
Posts: 133
Reputation: 6,572

Post » Mon Mar 26, 2012 2:30 am

We can't see your events unless you upload your .capx file, can you share it?

Check your collision masks, are they all reasonably thick? Objects can sometimes pass through really small collision masks at low framerates.Ashley2012-03-26 02:30:53
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Mon Mar 26, 2012 2:45 am

Basically my walls have the solid behaviour (they have a height and width of minimum 32 pixels)
and the player object has the platform movement behaviour.

Adding the solid behaviour to my player object didn't helped either.Wishy2012-03-26 02:45:46
B
22
S
11
G
9
Posts: 133
Reputation: 6,572

Post » Mon May 05, 2014 1:59 pm

The Collision Mask is not the dimensions of your object. In the Image editor on tools panel to the left, at the bottom is the image of dots connected by lines. That tool defines your collision mask. When selected you will see a series of red dots over your image, connected by deep blue lines and the internal area coloured with a light blue. That is your collision area.

What Ashley is asking, is that the collision mask too small.

Also you should double check to see if your object and players have Collision Enabled. That option is found in the Object Properties, near the bottom.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834


Return to Construct 2 General

Who is online

Users browsing this forum: armaldio, shinichild, zenox98 and 1 guest