Difference between revisions of "Expression"

From Castle Wiki
(Add links to all expression pages)
Line 26: Line 26:
*[[The speed of an actor expression|The speed of an actor]]
*[[The speed of an actor expression|The speed of an actor]]
*[[The angle of motion of an actor expression|The angle of motion of an actor]]
*[[The angle of motion of an actor expression|The angle of motion of an actor]]
*
*[[The angle from one actor to another (degrees) expression|The angle from one actor to another (degrees)]]
[[The angle from one actor to another (degrees) expression|The angle from one actor to another (degrees)]]
*[[The distance between two actors expression|The distance between two actors]]
*[[The distance between two actors expression|The distance between two actors]]
=== Arithmetic ===
=== Arithmetic ===



Revision as of 07:41, 10 May 2022

Expressions in Castle are used for many things, including calculating health for characters, crafting procedural games and animations, and even making generative artwork. Expressions sometimes take in some values as arguments and always return a result value.

List of Expression Types

The following is a list of expression types in the order that they are listed when viewed in the Castle "Choose expression type" sheet

Values

Choices

Randomness

Spacial relationships

Arithmetic

Clock

Functions