The Jump-thru behavior allows the Platform behavior to stand on the object, and jump on to it from underneath. This differs from the Solid behavior, which the Platform behavior can stand on, but not jump on to from underneath. The image below illustrates the difference.
Note the Jump-thru behavior does not support slopes. Any slopes in your game should use the Solid behavior instead.
Jump-thru vs. Solid behaviors
Scripting
When using JavaScript or TypeScript coding, the features of this behavior can be accessed via the IJumpthruBehaviorInstance script interface.
Jump-thru properties
- Enabled
- Set whether the behavior is initially enabled or disabled. If disabled, the object no longer acts as if it is a Jump-thru, and the Platform behavior will always fall through it.
Jump-thru conditions
- Is enabled
- True if the behavior is currently enabled. This can be changed by the Enabled property or the Set enabled action.
Jump-thru actions
- Set enabled
- Enable or disable the Jump-thru behavior for this object.
Construct Animate Manual
Construct.net
2017-08-22
2024-02-16
You are here:
Search this manual:
This manual entry was last updated on 16 Feb, 2024 at 16:28