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.
Creates an action object of type PRActionTypeCustomScript2. When this action is played by an object, the script identified by scriptId will be called once per frame (step) and will be given 2 numeric arguments that will animate from the values given in fromValue1 and fromValue2 to the values given in toValue1 and toValue2 using the easing equation identified by easeId over a duration of durationSecs seconds. The script will run within the context of the object running the action.
PRActionCustomScript2(scriptId, fromValue1, fromValue2, toValue1, toValue2, easeId, durationSecs)
The script resource id to call at each frame (step) throughout the animation.
The value that the first value starts at when the animation begins.
The value that the second value starts at when the animation begins.
The value that the first value ends up at when the animation is complete.
The value that the second value ends up at when the animation is complete.
The ease ID identifying the easing equation to use when animating the object's variable.
The total length of time (in seconds) that the animation will take before completing. Specifying 0 here will result in an instant change to the final value in 1 frame (step).
The created action object.