Difference between revisions of "AGI Command Reference - Object Control Commands"

From AGI Wiki
Jump to navigationJump to search
Line 59: Line 59:
 
</div><br />
 
</div><br />
  
[[AGI Tutorials|Tutorials Table of Contents]]<br />
+
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]<br />
[[Tutorials and Guides|Tutorials and Guides Table of Contents]]
+
[[AGI Command Reference|AGI Command Reference Index]]
  
 
<span style="float: left">[[AGI Command Reference - Program Control Commands|&lt; Previous: Program Control Commands]]</span><span style="float: right">[[AGI Command Reference - Object Description Commands|Next: Object Description Commands &gt;]]</span>
 
<span style="float: left">[[AGI Command Reference - Program Control Commands|&lt; Previous: Program Control Commands]]</span><span style="float: right">[[AGI Command Reference - Object Description Commands|Next: Object Description Commands &gt;]]</span>

Revision as of 14:30, 26 December 2013

Tutorials and Guides Table of Contents
AGI Command Reference Index

Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16


Object Control Commands
By Chris Cromer

 

Interpreter controls movement of objects around the screen automatically checking the following conditions:

  • If an object priority is 0 it cannot cross an unconditional barrier (pixels with priority 0).
  • If an object priority is 15 and a command ignore_block(); has not been given to it, it cannot cross a conditional barrier (pixels with priority 1) and leave the block set using the 'block' command.
  • If an object has not been given 'ignore.horizon(oi);' Object(i) command, it cannot move above the horizon set using the set_horizon command.
  • An object should follow the conditions set using

object.on.water(oi); and object.on.land(oi); Object(i) commands (see object description commands).

Object number 0 is called EGO. It is different from others in that the player may move it around using the keyboard.

 

Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16


Tutorials and Guides Table of Contents
AGI Command Reference Index

< Previous: Program Control CommandsNext: Object Description Commands >