Hide player character: Difference between revisions

From Adventure Game Studio | Wiki
Jump to navigation Jump to search
mNo edit summary
m (added the last sentence)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Rooms have a tickbox called "hide player character" which can be used for title/menu/credits screens, etc.
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 property holds 0. This undocumented variable is normally 1, but you can also set it to 0 to make any character invisible.
If this option is ticked, the Character.on property holds 0. This undocumented variable is normally 1, but you can also set it to 0 to make any character invisible.


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


Another way to do this is directly modifying the Character.room property. This won't prompt a room change, it'll just make the player character disappear.
Another way to do this is directly modifying the Character.room property. This won't prompt a room change, it'll just make the player character disappear.
This option is useful for first-person views, or the cut-scenes when the main character doesn't take a role (for example, while showing some other characters' talking).


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

Latest revision as of 22:22, 14 December 2005

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

If this option is ticked, the Character.on property holds 0. This undocumented variable is normally 1, but you can also set it to 0 to make any character invisible.

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

Another way to do this is directly modifying the Character.room property. This won't prompt a room change, it'll just make the player character disappear.

This option is useful for first-person views, or the cut-scenes when the main character doesn't take a role (for example, while showing some other characters' talking).