Physics: object stoped

0 favourites
  • 6 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • There is any easy way do detect if an object with physics behavior had stoped?

    thanks.

  • i think that you need to add platform behavior and in the behavior property you make it custom keyboard and then in the event sheet

    [invert]sprite is moving

    and here ya go

  • You can add the horizontal and vertical speed speed of the object, and compare that.

  • Thanks for the reply but if I put platform behavior, the physics goes crazy...

    And if I just check the horizontal and vertical speed, there are some times that a ball goes up, STOP, and then goes down again, so it can't be trusted...

  • its something i just come up with, so i need to test it, but what if you compare the distance to a temp point, every so many ticks, this can tell you if its has been moved and check if its moving fast or not, and it doesn't need alot of overhead calculation, like velocity calculation

    sqrt(Object.Physics.VelocityX ^ 2 + Object.Physics.VelocityY ^ 2)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, there are some ways do to that, but I guessed that someone had come with a simple idea :)

    Hope in future updates scirra could plan on something!

    In the meantime, congratulations for this excelent software!

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