Ignore Gravity

Get help using Construct 2

Post » Tue Nov 06, 2012 12:12 pm

Is there any way I can tell some physics object to ignore gravity?

So say I have a ring of light and whenever a physics object is within that ring of light, I'd want it to ignore gravity. Where everything outside of that ring of light is still affected by gravity.

Any ideas?

Cheers,
Mik
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Tue Nov 06, 2012 3:24 pm

Do you still want it to be able to move when its gravity is at 0?
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Tue Nov 06, 2012 3:49 pm

[QUOTE=EncryptedCow] Do you still want it to be able to move when its gravity is at 0?[/QUOTE]

Yeah ideally but, static 'pockets' of 0 gravity would be interesting
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Tue Nov 06, 2012 4:57 pm

I'm at school right now so I cant try anything. As far as I remember though there isn't any gravity setting for the physics behavior. This is just off the top off my head so I'm not sure if it will work, but see if 8-direction can bump into other 8-direction objects and make them move. Also try physics objects making 8-direction move.

If they CAN make each other move (This probably isn't the best thing to do, but its the best I can think of not having C2 available)

Give each object a physics and 8-direction behavior. Then, do this:

- Object is overlapping ring
- Do Once while true
-> disable physics
-> enable 8-direction

- Object is NOT overlapping
- Do Once while true
-> enable physics
-> disable 8-direction

This way you eill probably also need to add custom controls and dont give any controls so the user won't accidently move it around while in 8-direction (unless you want them too)

Sorry if this is over complicating things, but it is the best I could think of off the top of my head.
B
40
S
12
G
7
Posts: 603
Reputation: 7,656


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, OddConfection and 20 guests