0 Favourites

Ignore Gravity

  • 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

  • Do you still want it to be able to move when its gravity is at 0?

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Do you still want it to be able to move when its gravity is at 0?

    Yeah ideally but, static 'pockets' of 0 gravity would be interesting

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
168 15,523
Lumicreative's avatar
Lumicreative
Unread hot topic
0 Favourites
Blot: Gravity Platformer
59 12,937
pyteo's avatar
pyteo
Unread hot topic
47 7,392
tumira's avatar
tumira