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

PRActionQShake()

Creates a compound action that, when played by an object, will shake the object back and forth either horizontally or vertically.


Declaration

PRActionQShake(isHorz, travel, shakeCount, durationPerShakeSecs)

Parameters

isHorz

Set to true for horizontal shaking. Set to false for vertical shaking.

travel

The distance that the shake travels.

shakeCount

The number of shakes to perform. Specify a negative number here for infinite shaking.

durationPerShakeSecs

The time, in seconds, that it takes for the shake animation to travel from one extreme to the other and back.

Return Value

The created action object.