A Physics Question

Get help using Construct 2

Post » Sat Feb 15, 2014 12:33 pm

Hi,

I have given a sprite a physics behaviour but for some reason it passes straight through sprites that have the solid behaviour!

My solids and physics attributed sprites are all on the same layer so i'm a bit confused..

How can i set a sprite with physics to sit atop a solid?
B
7
S
2
Posts: 110
Reputation: 927

Post » Sat Feb 15, 2014 12:38 pm

The solid behaviour has nothing to do with physics. It's to be twinned together with the 'platform' behaviour.

What you want to do for those things that you gave the solid behaviour to is give them the physics behaviour and then set the 'immovable' trait to yes. This means that it's solid and won't move. Other sprites (that are not immovable of course!) will then be able to interact with it as if it were/solid/a platform/an obstacle etc.

It's not advisable to have physics and platform behaviours in the same layout really - it leads to some unpredicatable and screwy behaviour. Decide which one is going to be better for your project (physics/platform) and then run with that.

Let me know if that answers your question.Psynaptik2014-02-15 12:39:02
B
6
S
2
Posts: 56
Reputation: 616

Post » Sat Feb 15, 2014 12:56 pm

I see what your saying. I have created a 64x64px wooden crate image and split it into four parts, i'm rebuilding the crate so that when it is destroyed it will break up into it's component parts.

I can't think of any other way of doing it really..
B
7
S
2
Posts: 110
Reputation: 927


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, David181, fens and 10 guests