There is any easy way do detect if an object with physics behavior had stoped?
Develop games in your browser. Powerful, performant & highly capable.
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)
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!