Difference between revisions of "Actor"

From Castle Wiki
(actor basics)
 
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Actors in Castle are game objects which can be used to do many things, from displaying graphics, to moving, acting under the forces of gravity and other physics, or even communicating with one another.
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.]]
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]].
 
== 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.