A question about physics gravity

Get help using Construct 2

Post » Sun Apr 28, 2013 6:41 am

Hello!

Is it possible to create a layout with two separate gravity areas?

The closest thing that comes to my mind is angry birds space.. So you would have a zero gravity area and when you overlap another area, another gravity would kick in, but only affecting the sprites in that area. I'm guessing that the physics "world gravity" is not going to help me in this..

Any ideas?
B
10
S
2
Posts: 27
Reputation: 1,231

Post » Sun Apr 28, 2013 7:49 am

Ok, I'm now thinking that I could set the gravity at zero and with events, add force to emulate gravity when needed.. I guess that might solve it.. Can't test it now, but if it does, then sorry for the post..
B
10
S
2
Posts: 27
Reputation: 1,231

Post » Sun Apr 28, 2013 10:39 am

@chef

Hi,

take a look at this post

Gravitaion plugin
B
45
S
15
G
9
Posts: 1,096
Reputation: 11,038

Post » Sun Apr 28, 2013 11:25 am

Nice, I'll definitely have a look at it! Thank you!
B
10
S
2
Posts: 27
Reputation: 1,231

Post » Sun Apr 28, 2013 2:03 pm

gravitation seems to be more for planets etc

you might have better luck just making your own gravity..
on start of layout set gravity to 0

and then to make your own its a case of applying force every tick
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sun Apr 28, 2013 6:07 pm

Yes, the result was better with the event based custom gravity. Thanks though for the gravitation plugin info Spongehammer!
B
10
S
2
Posts: 27
Reputation: 1,231


Return to How do I....?

Who is online

Users browsing this forum: jfcservices, selaus and 0 guests