A love confession and questions about physics

This forum is currently in read-only mode.
  • First of all, hello, i'm new to this forum.

    Second, thank you for a beautiful program. I'm a long time Multimedia Fusion user and Construct seems to have everything that MMF is missing, and more. I've been completely blown away by this program ever since i first started it up. Everything is just so... smart

    It's so nice to see that you actually have an understanding of games (insert long rant with bashing of Clickteam here).

    Ahhh..

    Anyway, I have a few questions about the physics behaviour:

    Is it possible to somehow toggle the Immovable option during runtime?

    Is there a way to delete a hinge?

    If not, could someone perhaps tell me how to emulate this? What I'm trying to do is have static objects placed around the playfield and when a certain event occurs, apply physics to them.

    edit: I thought I had figured something out by adding another physics behaviour, but there doesn't seem to be a way to toggle behaviours on/off?

  • Welcome

    Right now there is no way to remove a hinge or set the Immovable attribute at runtime, I'm afraid. But they are worthy additions so you could request them as features.

    If not, could someone perhaps tell me how to emulate this? What I'm trying to do is have static objects placed around the playfield and when a certain event occurs, apply physics to them.

    Could you perhaps be more specific in what you're trying to do? What sort of static objects? What sort of physics are you applying? Are you dealing with gravity? Do you just not want certain things to move until told, or do you want everything freezing/moving in unison?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anyway, I have a few questions about the physics behaviour:

    Is it possible to somehow toggle the Immovable option during runtime?

    o

    If not, could someone perhaps tell me how to emulate this? What I'm trying to do is have static objects placed around the playfield and when a certain event occurs, apply physics to them.

    ust disable Gravity and set Mass to 999999999 and nothing will move it.

  • [quote:891emlar]Just disable Gravity and set Mass to 999999999 and nothing will move it.

    I think this would work, though right now, the action for changing mass at runtime seems to be buggy and won't do anything.

    [quote:891emlar]Could you perhaps be more specific in what you're trying to do? What sort of static objects? What sort of physics are you applying? Are you dealing with gravity? Do you just not want certain things to move until told, or do you want everything freezing/moving in unison?

    I want certain objects to be completely fixed, like a solid background tile, and when told to, start to move (gravity and all).

    I guess I'll put this little project on hold until the physics behavior is closer to completion

  • you can do both by replacing the object with one that looks the same

    and destroying the original in the same event

    copy the x and y coordinates

    copy the angle

    and if it's a hinge you should copy the angular velocity also

    so the movement stays natural

    I can post a cap if you cant get it to work

    Ive done this before, so it definitely works

  • click to change in each one. of course they didn't have to look different than the originals, but it illustrates that it's a new object at that point

    TileToGravity:

    Unhinge:

    if you find the animation of the unhinging to be a little awkward, it's because the center of gravity is instantly switched. it's possible to get around that. this may be accurate enough for your purposes though

  • that seems to do the trick, thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)