diff --git a/dev-assets/doodads/crumbly-floor/crumbly-floor.js b/dev-assets/doodads/crumbly-floor/crumbly-floor.js index 155be86..509101b 100644 --- a/dev-assets/doodads/crumbly-floor/crumbly-floor.js +++ b/dev-assets/doodads/crumbly-floor/crumbly-floor.js @@ -19,10 +19,6 @@ function main() { var startedAnimation = false; Events.OnCollide(function(e) { - // Only trigger for mobile characters. - if (!e.Actor.IsMobile()) { - return; - } // If the floor is falling, the player passes right thru. if (state === stateFalling || state === stateFallen) { @@ -36,6 +32,11 @@ function main() { return false; } + // If movement is not settled, be solid. + if (!e.Settled) { + return false; + } + // Begin the animation sequence if we're in the solid state. if (state === stateSolid) { state = stateShaking;