How do I Stop My Player Morphing through Physics object / as

Get help using Construct 2

Post » Fri Aug 28, 2015 11:07 am

Message: Mooocowgaming is not yet permitted to post plain text URLS (300 rep required). 2 URLS removed. Why?
So, This is my 2nd game. First game in construct. I have used it for 12-14 hours now but cannot figure out why the player morphs through the Physics Block. I have also added a solid behavior. (As seen in demo below) But the cube feels to heavy and slows the player down. I want that solidity but the lightweight push of the physics block without the solid behavior. You can also just tap the block and it has no weight. I have linked to the compressed Construct file and the website page for the game.


To see a physics example: (Choose Level 5 From Level Selector)

Capx:
B
3
Posts: 3
Reputation: 181

Post » Fri Aug 28, 2015 11:15 am

We've just published a C2Academy video on physics
As noted, physics behavior only interacts with physics behavior, never with the solid behavior.

A physics object which its immovable property has been set to yes will act as a ground through which the character cannot "fall".

Pay attention to the collision polygons of your objects.
Read the manual article to get more infos on each property as well as the physics tutorial (basic, advanced) to learn more on the general usage of the behavior.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
295
S
118
G
96
Posts: 7,328
Reputation: 71,248

Post » Fri Aug 28, 2015 11:16 am

I Cant post links so: sorry if this breaks rules, i just dont know how to share this with you otherwise.

To see a physics example: mooocowgaming.wix(dot)com/mooocowgaming#!do-you-even-cube-2/cq6p

Capx: drive.google(dot)com/file/d/0B5zVGOPUAIx6SmVHUjNFMEM4UVE/view?usp=sharing
B
3
Posts: 3
Reputation: 181

Post » Fri Aug 28, 2015 11:23 am

Message: Mooocowgaming is not yet permitted to post plain text URLS (300 rep required). 2 URLS removed. Why?
Kyatric wrote:As noted, physics behavior only interacts with physics behavior, never with the solid behavior.

A physics object which its immovable property has been set to yes will act as a ground through which the character cannot "fall".

Pay attention to the collision polygons of your objects. ) to learn more on the general usage of the behavior.


3 things. 1. Thanks for replying
2. I want this object to be able to move. I want my player to be able to stand on it but also be able to move it. But not fall through it. (My Player has Physics Behavior)
3. When i add the solid behavior, my player does not fall through the block. But i can still move the block, but the player looses speed and it is hard to push the block. Something must be effecting the solid behavior on the physics block.
B
3
Posts: 3
Reputation: 181

Post » Fri Aug 28, 2015 11:39 am

Trying to integrate physics with the other behaviors is not only not recommended (as mentioned in the manual) but will lead to many problems.

Best bet - either drop physics and use anther methos, or drop all the other behaviors and do everything using the actions of the physics object.
Last edited by zenox98 on Fri Aug 28, 2015 1:26 pm, edited 1 time in total.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,541
Reputation: 60,426

Post » Fri Aug 28, 2015 12:56 pm

The How do I FAQ contains an example of how to have a character using platformer and interacting with physics behavior objects in the world.

Player (platform behavior) and Physic (world objects) - LINK
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
295
S
118
G
96
Posts: 7,328
Reputation: 71,248


Return to How do I....?

Who is online

Users browsing this forum: matriax, R0J0hound, SnipG and 6 guests