Difference between revisions of "AGIWiki/Ego"

From ScummVM :: Wiki
Jump to navigation Jump to search
(Created page with "{{AGIWiki}} '''Ego''' is the name given for the special object <code>o0</code>. In loose terms, ego can be thought of as the "main character" for the...")
 
m
 
Line 3: Line 3:
'''Ego''' is the name given for the special [[AGIWiki/Animated object|object]] <code>o0</code>. In loose terms, ego can be thought of as the "main character" for the game. To be technically accurate, ego is the animated object that the player can control using either the keyboard, joystick or mouse.
'''Ego''' is the name given for the special [[AGIWiki/Animated object|object]] <code>o0</code>. In loose terms, ego can be thought of as the "main character" for the game. To be technically accurate, ego is the animated object that the player can control using either the keyboard, joystick or mouse.


Ego is treated specially by the [[AGIWiki/Interpreter interpreter]. There are [[AGIWiki/Special flags|special flags]] and [[AGIWiki/Special variables|special variables]] that exist specifically to provide useful information about ego, for example:
Ego is treated specially by the [[AGIWiki/Interpreter|interpreter]]. There are [[AGIWiki/Special flags|special flags]] and [[AGIWiki/Special variables|special variables]] that exist specifically to provide useful information about ego, for example:


* what [[AGIWiki/Screen edges|edge of the screen]] ego is touching (<code>v2</code>, or <code>ego_edge_code</code> in the [[AGIWiki/AGI Studio Template Game|template game]])
* what [[AGIWiki/Screen edges|edge of the screen]] ego is touching (<code>v2</code>, or <code>ego_edge_code</code> in the [[AGIWiki/AGI Studio Template Game|template game]])

Latest revision as of 19:37, 17 February 2013

AGIWiki


Ego is the name given for the special object o0. In loose terms, ego can be thought of as the "main character" for the game. To be technically accurate, ego is the animated object that the player can control using either the keyboard, joystick or mouse.

Ego is treated specially by the interpreter. There are special flags and special variables that exist specifically to provide useful information about ego, for example:

  • what edge of the screen ego is touching (v2, or ego_edge_code in the template game)
  • which direction ego is moving (v6, or ego_dir)
  • whether ego is hidden behind something on the screen (f1, or ego_hidden)

For a complete list, see special flags and special variables.

There are also commands that work with ego specifically. For example, the follow.ego command causes another animated object to follow ego around the screen.

See also