Note: This PRAction documentation is out-dated and is for an older (pre-GMS v2.3) version of PRAction. For the most up-to-date docs on the latest version of PRAction, please refer to this page as well as the documentation included in the PRAction package.

Documentation Topics
Function

PRActionQJumpBounce()

Creates a compound action that, when played by an object, will cause the object to travel away from it's starting point, up along the given travelAngle until the distance given in travel is reached, and then falls back down to it's starting point, where it will then bounce again lower and lower repeatedly until settles, as though by gravity. Each primary bounce duration will be jumpDurationSecs seconds, and does not include the time it takes for the object to settle back down via the smaller bounces.


Declaration

PRActionQJumpBounce(travel, travelAngle, bounceLoss, repeatCount, easeUpId, easeDownId, jumpDurationSecs, delaySecs)

Parameters

travel

The distance that the bounce travels.

travelAngle

The angle that the bounce occurs, with 90 being straight up.

bounceLoss

How much of the bounce energy is lost after each bounce. Must be greater than 0 and less than or equal to 1.

repeatCount

The number of times the entire bounce animation repeats. Specify a negative number here for infinite bouncing.

easeUpId

The ease id indicating which easing function to use for the first half of the bounce.

easeDownId

The ease id indicating which easing function to use for the second half of the bounce.

jumpDurationSecs

The time, in seconds, that it takes for each bounce to occur.

delaySecs

The time, in seconds, that it waits before starting the next bounce repeat.

Return Value

The created action object.