Hide player character: Difference between revisions

From Adventure Game Studio
Jump to navigation Jump to search
*>SSH
No edit summary
 
*>SSH
No edit summary
Line 4: Line 4:


Note that Character.Walk and the like don't work with characters turned off this way.  
Note that Character.Walk and the like don't work with characters turned off this way.  
N.B. Directly modifying Character.room won't prompt a room change, it'll just make the player character disappear, which is another way to do this.


[[Category:Tidbits and Snippets]]
[[Category:Tidbits and Snippets]]

Revision as of 12:24, 1 December 2005

Rooms have a tickbox called "hide player character" which can be used for title/menu/credits screens, etc.

If the hide player option is ticked [the Character.on variable] holds 0. This is an undocumented Character.on variable, which is normally 1, but you can also set it to 0 to make the character invisible.

Note that Character.Walk and the like don't work with characters turned off this way.

N.B. Directly modifying Character.room won't prompt a room change, it'll just make the player character disappear, which is another way to do this.