Difference between revisions of "AGIWiki/new.room.v"

Jump to navigation Jump to search
48 bytes added ,  15:10, 25 October 2018
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Created page with "__NOTOC__ {{AGIWiki}} The '''new.room.v''' command changes the current room number to a new room and forces an update. There is an [[AGIWiki/Indirect command|d...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{AGIWiki}}
{{AGIWiki}}
 
{{AGIWiki/Control Flow Commands}}
The '''new.room.v''' command changes the current room number to a new [[AGIWiki/Room|room]] and forces an update. There is an [[AGIWiki/Indirect command|direct]] version of this command called '''[[AGIWiki/new.room|new.room]]'''.
The '''new.room.v''' command changes the current room number to a new [[AGIWiki/Room|room]] and forces an update. There is an [[AGIWiki/Indirect command|direct]] version of this command called '''[[AGIWiki/new.room|new.room]]'''.


Line 46: Line 45:
The following code goes to room 25 if [[AGIWiki/Ego|ego]] is touching the left edge of the screen:
The following code goes to room 25 if [[AGIWiki/Ego|ego]] is touching the left edge of the screen:


<syntax type = "C++">
<syntaxhighlight lang="cpp">
  #define ego_edge_code v2
  #define ego_edge_code v2
  #define left_edge      4
  #define left_edge      4
Line 55: Line 54:
     new.room.v(v202);
     new.room.v(v202);
  }
  }
</syntax>
</syntaxhighlight>


== Technical Information ==
== Technical Information ==
TrustedUser
2,147

edits

Navigation menu