<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKAction/falloff(by:duration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKAction(cm)falloffBy:duration:"
  },
  "title" : "falloff(by:duration:)"
}
-->

# falloff(by:duration:)

Creates an action that animates a change of a physics field’s falloff to a value relative to the existing value.

```
class func falloff(by falloff: Float, duration: TimeInterval) -> SKAction
```

## Parameters

`falloff`

The value to add to the falloff.

`duration`

The duration of the animation, in seconds.

## Return Value

A new action object.

## Discussion

When the action executes, the field node’s [`falloff`](/documentation/SpriteKit/SKFieldNode/falloff) property animates from its current value to its new value.

This action is reversible; the reverse is created as if the following code is executed:

**Swift:**

```swift
let action = SKAction.falloff(by: -falloff, duration: sec)
```

**Obj-C:**

```objc
[SKAction falloffBy: -falloff duration: sec];
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)