How do I exclude a sprite from gravity

Get help using Construct 2

Post » Sun Oct 05, 2014 1:05 pm

Hi,

On start of layout my gravity is set to 0.
In the center of my layout there's some platforms moving from left to right and back, by setting physics velocity, and reversing that on collion with the wall. Now, my mechanic switches direction of gravity on key press which makes the player (ball) fall from bottom to back etc ...

When I turn on the gravity though, my 'animated' platfoms also follow gravity. Is there a way to exclude them from gravity?
setting immovable stops all moving, density settings seem not to be in play here , ...


thnx in advance!

sven
B
5
Posts: 9
Reputation: 243

Post » Tue Oct 07, 2014 6:03 am

ok, waited like 2 days and I sank to page 3 and still no reply :-(
guess 'm asking this the wrong way, or there is no way to do it?


thnx anyway.


sven
B
5
Posts: 9
Reputation: 243

Post » Tue Oct 07, 2014 6:24 am

Are you able to upload the capx? It would be easier if we can see your setup
B
32
S
6
G
2
Posts: 317
Reputation: 2,801

Post » Tue Oct 07, 2014 9:10 am

you mean like this
You do not have the required permissions to view the files attached to this post.
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,579

Post » Tue Oct 07, 2014 8:17 pm

Lordshiva has it kinda right. That's it actually. Secret here is to animate 'm with a sine behaviour and not adding a physics behaviour to them?

Got the platform working that way. Got no collision between the ball and the pink platform though, but I read that is imopssible when one of the to objects hasn't got the fysics behaviour attached. Shiva, In your capx file you mimmick this, right?

Big thnx to indieKiwi and Lordshiva.


sven
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 9
Reputation: 243

Post » Tue Oct 07, 2014 8:56 pm

Most welcome nonius. We are here to help if we can
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,579

Post » Tue Oct 07, 2014 8:57 pm

appreciated it is!

s.
B
5
Posts: 9
Reputation: 243

Post » Wed Oct 08, 2014 6:52 am

nonius you mean like this
You do not have the required permissions to view the files attached to this post.
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,579

Post » Wed Oct 08, 2014 7:23 am

yeah, that's the idea. But it is a random bounce angle approach, which sometimes has a weird feiling over it.
I have an idea to overrule this. I'll update a new .capx soon.

s.
B
5
Posts: 9
Reputation: 243

Post » Wed Oct 08, 2014 7:38 am

nonius Good now it's up to you to work it out the way you like. We can only guide you rest is up to you. Good luck
B
249
S
39
G
15
Posts: 1,952
Reputation: 40,579

Next

Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, David181, dop2000, luckyrawatlucky and 5 guests