room_set_view_enabled

Sets whether views are enabled or not in a given room.

Syntax:

room_set_view_enabled( ind, val );


Argument Description
ind The index of the room to set.
val Whether to enable (true) or disable (false) views in the given room.


Returns: N/A


Description

With this function you can enable (true) or disable (false) the view of any room within your game except the current one.


Example:

global.myroom = room_add();
room_set_view_enabled(global.myroom, true);

This will enable views in the room indexed in "global.myroom".


Back: Rooms
Next: room_exists
© Copyright YoYo Games Ltd. 2018 All Rights Reserved