gravity of an object

Get help using Construct 2

Post » Tue Oct 15, 2013 9:45 am

Hi all, is it possible to assign gravity to a singleobject? For example i have 2 objects, i want to set the bigger one to have a gravity and attract the smaller one to his center.
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Tue Oct 15, 2013 9:51 am

No, it's not possible to set gravity to a single object, but....

You could set world gravity to 0 and use forces on objects to apply gravity on them.

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Oct 15, 2013 9:51 am

If you mean some kind of gravitational pull then yes, use 'MoveToward' when the object is in range.
B
46
S
16
G
77
Posts: 2,164
Reputation: 45,845

Post » Thu Oct 17, 2013 3:00 pm

Hi Plinkie, i can't find a move toward object command. Did you mean set position to object? in this case there isnt any movemet:/ just a new position.
B
8
S
4
G
1
Posts: 191
Reputation: 1,873


Return to How do I....?

Who is online

Users browsing this forum: beohs, GOLDSVET, tunepunk and 10 guests