Difference between revisions of "Actor"

From Castle Wiki
(Improve detail)
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:Actor snake.png|thumb|An actor placed in the scene.]]
An '''Actor''' is an object in a card, such as the player, a wall, a coin, a ball, or whatever you decide.[[File:Actor snake.png|thumb|An actor placed in the scene.]]
Actors in Castle are game objects which can be used to do many things, from displaying [[art]], to moving, acting under the forces of [[gravity]] and other physics, or even communicating with one another.
All actors are designed and created from [[Blueprint|Blueprints]], but there can be many actors all using the same blueprint. Actors have a position in space, can collide with each other, and can refer to each other with [[Tag|Tags]]. For more information about the relationship between actors and blueprints, see [[Blueprint]].


Actors are designed by editing their [[Blueprint|blueprints]].
== Actor-specific state ==
Although actors derive all their initial properties from their [[Blueprint]], their state can change as the deck is played:
 
* Each actor has its own position and layout in deck space.
* Individual actors can store different [[Variable|Variables]].
* Individual actors can gain and lose [[Tag|Tags]].

Latest revision as of 21:11, 11 May 2022

An Actor is an object in a card, such as the player, a wall, a coin, a ball, or whatever you decide.

An actor placed in the scene.

All actors are designed and created from Blueprints, but there can be many actors all using the same blueprint. Actors have a position in space, can collide with each other, and can refer to each other with Tags. For more information about the relationship between actors and blueprints, see Blueprint.

Actor-specific state

Although actors derive all their initial properties from their Blueprint, their state can change as the deck is played:

  • Each actor has its own position and layout in deck space.
  • Individual actors can store different Variables.
  • Individual actors can gain and lose Tags.