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 PRActionTypeSpriteIndex. When this action is played by an object, the object's sprite_index and/or image_index instance variables will be changed instantly to the given spriteIndex and imageIndex values, respectively.
PRActionSpriteIndex(spriteIndex, imageIndex)
The value to change the object's sprite_index variable to. Specifying noone here will cause no change to the sprite_index variable.
The value to change the object's image_index variable to. Specifying noone here will cause no change to the image_index variable.
The created action object.