Brick Plugins: Difference between revisions

From Ricochet Wiki
Content added Content deleted
No edit summary
No edit summary
Line 56: Line 56:
!colspan="2"| '''Move''' - Plugins that move the brick
!colspan="2"| '''Move''' - Plugins that move the brick
|-
|-
| Blend Positions || Makes the brick keep its relative positioning between two targets.
| Blend Positions || Makes the brick keep its relative positioning between two specified targets.
|-
|-
| Mimic Movement || Makes the brick mimic the movement of a given target. Includes various offset parameters.
| Mimic Movement || Makes the brick mimic the movement of a specified target. Includes various offset parameters.
|-
|-
| Move Along Path || Makes the brick move along a defined path. To be used in conjuction with [[paths]].
| Move Along Path || Makes the brick move along a defined path. To be used in conjuction with [[paths]].
|-
|-
| Move Away From Point At Constant Speed || Makes the brick move away at constant from a specified target
| Move Away From Point At Constant Speed || Makes the brick move away at constant speed from a specified target
|-
|-
| Move Between Points|| Makes the brick move back and forth in a vector defined by two points
| Move Between Points|| Makes the brick move back and forth in a vector defined by two specified targets
|-
|-
| Move In Direction || Makes the brick move at constant speed in a given angle
| Move In Direction || Makes the brick move at constant speed in a given angle
|-
|-
| Move To Point || Makes the brick move towards a point in a specific time
| Move To Point || Makes the brick move towards a specified target in a specific time
|-
|-
| Move To Point At Constant Speed || Makes the brick move towards a point at a defined amount of pixels per second
| Move To Point At Constant Speed || Makes the brick move towards a specified target at a defined amount of pixels per second
|-
|-
| Orbit || Makes the brick orbit around another defined object or point
| Orbit || Makes the brick orbit around a specified target
|-
|-
| Spring || Makes the brick behave as a spring joint point between two other points.
| Spring || Makes the brick behave as a spring joint point between two specified targets
|-
|-



Revision as of 12:41, 26 April 2020

Brick plugins are scripts that can be selected in every Ricochet object when in the editor. They can be used to modify behaviour of these objects and are what gives Ricochet all the flexibility that it has. By default, plugins are ran simultaneously. They fall under a few categories listed below:

Plugin Name Plugin Description
(none) This plugin does nothing. When put in a sequence, it can be used in combination with "advance to next item in sequence" to force a condition.
Debug - This is a unique section with only one plugin, used for debugging of variables.
Expression Tester Shows the values of the selected expressions. Only in test mode.
Hide - This section allows you to hide and reveal bricks. Hidden bricks don't count towards level completion.
Hide Hides the brick by transitioning its transparency.
Hide and Reveal After Delay Hides the brick and after a defined time, brings the brick back by transitioning its transparency.
Reveal Brings the brick back by transitioning its transparency.
Miscellaneous - A section with mostly unrelated plugins
Destroy Bricks Near Point Example
Display Value Example
Drop Powerup Example
Fire Projectile Example
Gun Example
Particle System Example
Set Foreign Variable Example
Set Local Variable Example
Spawn Floating Text Example
Star Fish Example
Wait For Brick To Be Destroyed Example
Wait For Expression Example
Wait For Message Example
Wait For Multiple Hits Example
Wait X Seconds Example
Move - Plugins that move the brick
Blend Positions Makes the brick keep its relative positioning between two specified targets.
Mimic Movement Makes the brick mimic the movement of a specified target. Includes various offset parameters.
Move Along Path Makes the brick move along a defined path. To be used in conjuction with paths.
Move Away From Point At Constant Speed Makes the brick move away at constant speed from a specified target
Move Between Points Makes the brick move back and forth in a vector defined by two specified targets
Move In Direction Makes the brick move at constant speed in a given angle
Move To Point Makes the brick move towards a specified target in a specific time
Move To Point At Constant Speed Makes the brick move towards a specified target at a defined amount of pixels per second
Orbit Makes the brick orbit around a specified target
Spring Makes the brick behave as a spring joint point between two specified targets
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example