PRActionCreateChangeLayer(layerName)
Creates and returns an action of type PRACTION_TYPE_CHANGE_LAYER. When an oPRAction-derived object instance plays this action, the instance will move to the new layer with the given name in layerName.
The name of the layer to move the instance to.
An action that can be played by a PRAction-derived object.
PRActionCreateChangeSprite(spriteIndex, imageIndex)
Creates and returns an action of type PRACTION_TYPE_CHANGE_SPRITE. When an oPRAction-derived object instance plays this action, the instance's sprite_index and/or image_index will be changed to the new given values. Pass noone if no change is desired.
The ID of the sprite to change to, or noone for no change.
The new sprite frame to change to, or noone for no change.
An action that can be played by a PRAction-derived object.
PRActionCreateDepthBy(depthBy)
Creates and returns an action of type PRACTION_TYPE_DEPTH_BY. When an oPRAction-derived object instance plays this action, the instance's depth property will change by the amount given in depthBy.
The amount to change the depth by.
An action that can be played by a PRAction-derived object.
PRActionCreateDepthTo(depthTo)
Creates and returns an action of type PRACTION_TYPE_DEPTH_TO. When an oPRAction-derived object instance plays this action, the instance's depth property will change to the new given value.
The new depth to change to.
An action that can be played by a PRAction-derived object.
PRActionCreateDestroyObject(instanceOpt)
Creates and returns an action of type PRACTION_TYPE_DESTROY_OBJECT. When an oPRAction-derived object instance plays this action, the object instance specified in instanceOpt (or self if not provided) will immediately be destroyed. You may instead provide an object index in instanceOpt to destroy all instances of that object.
An object instance or object index. Defaults to self.
An action that can be played by a PRAction-derived object.
PRActionCreateGotoRoom(roomId)
Creates and returns an action of type PRACTION_TYPE_GOTO_ROOM. When an oPRAction-derived object instance plays this action, the given room number will run.
The room to run.
An action that can be played by a PRAction-derived object.
PRActionCreateHide()
Creates and returns an action of type PRACTION_TYPE_HIDE. When an oPRAction-derived object instance plays this action, that instance will be made invisible.
An action that can be played by a PRAction-derived object.
PRActionCreatePlayAction(action, instanceOpt)
Creates and returns an action of type PRACTION_TYPE_PLAY_ACTION. When an oPRAction-derived object instance plays this action, the given action will immediately be played by the given instance in instanceOpt, if one was provided. If not provided, self will be assumed.
The action to play.
The object instance that will play the given action. Defaults to self.
An action that can be played by a PRAction-derived object.
PRActionCreatePlaySound(soundId, priorityOpt, loopsOpt)
Creates and returns an action of type PRACTION_TYPE_PLAY_SOUND. When an oPRAction-derived object instance plays this action, the given sound will be played with the given priority and will loop play if loops is true.
The ID of the sound to play.
The channel priority. Can be 0 to 1, or 1 to 100. Defaults to 100.
Loops the sound if true, no loop play if false. Defaults to false.
An action that can be played by a PRAction-derived object.
PRActionCreateRunScript(scriptId, arg1, arg2, arg3, ..., arg8)
Creates and returns an action of type PRACTION_TYPE_RUN_SCRIPT. When an oPRAction-derived object instance plays this action, the given script will be run passing it the given optional arguments. Up to 8 arguments can be supplied.
The script to run.
The 1st argument passed to the script.
The 2nd argument passed to the script.
The 3rd argument passed to the script.
The 4th argument passed to the script.
The 5th argument passed to the script.
The 6th argument passed to the script.
The 7th argument passed to the script.
The 8th argument passed to the script.
An action that can be played by a PRAction-derived object.
PRActionCreateCallFunction(functionId, arg1, arg2, arg3, ..., arg8)
Creates and returns an action of type PRACTION_TYPE_CALL_FUNCTION. When an oPRAction-derived object instance plays this action, the given function or method will be called passing it the given optional arguments. Up to 8 arguments can be supplied.
The function/method to call.
The 1st argument passed to the function/method.
The 2nd argument passed to the function/method.
The 3rd argument passed to the function/method.
The 4th argument passed to the function/method.
The 5th argument passed to the function/method.
The 6th argument passed to the function/method.
The 7th argument passed to the function/method.
The 8th argument passed to the function/method.
An action that can be played by a PRAction-derived object.
PRActionCreateRunUserEvent(eventNumber)
Creates and returns an action of type PRACTION_TYPE_RUN_USER_EVENT. When an oPRAction-derived object instance plays this action, the instance's user event with number eventNumber will be run.
The event to run.
An action that can be played by a PRAction-derived object.
PRActionCreateSetVariable(variableName, value)
Creates and returns an action of type PRACTION_TYPE_GOTO_ROOM. When an oPRAction-derived object instance plays this action, that instance's variable identified by the name in variableName will be set to the given value.
The variable to set.
The value to set in the variable.
An action that can be played by a PRAction-derived object.
PRActionCreateStopAction(slotOrName, instanceOpt)
Creates and returns an action of type PRACTION_TYPE_STOP_ACTION. When an oPRAction-derived object instance plays this action, the action identified by slotOrName currently being played by the object instance instanceOpt (or self if not provided) will immediately stop playing.
The action's slot index or name to stop playing.
The object instance that will stop the given action. Defaults to self.
An action that can be played by a PRAction-derived object.
PRActionCreateStopAllActions(instanceOpt)
Creates and returns an action of type PRACTION_TYPE_STOP_ALL_ACTIONS. When an oPRAction-derived object instance plays this action, all actions currently being played by the object instance instanceOpt (or self if not provided) will immediately stop playing.
The object instance that will be bound to this action.
An action that can be played by a PRAction-derived object.
PRActionCreateStopAllSounds()
Creates and returns an action of type PRACTION_TYPE_STOP_ALL_SOUNDS. When an oPRAction-derived object instance plays this action, all playing sounds will stop.
An action that can be played by a PRAction-derived object.
PRActionCreateStopSound(soundIndex)
Creates and returns an action of type PRACTION_TYPE_STOP_SOUND. When an oPRAction-derived object instance plays this action, the sound identified by soundIndex (returned by the audio_play_sound function) will stop playing.
Sound index of the playing sound, returned by the audio_play_sound function.
An action that can be played by a PRAction-derived object.
PRActionCreateUnhide()
Creates and returns an action of type PRACTION_TYPE_HIDE. When an oPRAction-derived object instance plays this action, that instance will be made visible.
An action that can be played by a PRAction-derived object.