08.11.2012 Views

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the object that must remain visible. This can be remedied by one line of code in the creation<br />

event of all the possible main objects (assuming this must happen in the first view):<br />

{<br />

}<br />

view_object[0] = object_index;<br />

The following variables exist that influence the view. All, except the first two are arrays<br />

ranging from 0 (the first view) to 7 (the last view).<br />

view_enabled Whether views are enabled or not.<br />

view_current* The currently drawn view (0-7). Use this only in the drawing<br />

event. You can for example check this variable to draw certain things in only<br />

one view. Variable cannot be changed.<br />

view_visible[0..7] Whether the particular view is visible on the screen.<br />

view_xview[0..7] X position of the view in the room.<br />

view_yview[0..7] Y position of the view in the room.<br />

view_wview[0..7] Width of the view in the room.<br />

view_hview[0..7] Height of the view in the room.<br />

view_xport[0..7] X-position of the viewport in the drawing region.<br />

view_yport[0..7] Y-position of the viewport in the drawing region.<br />

view_wport[0..7] Width of the viewport in the drawing region.<br />

view_hport[0..7] Height of the viewport in the drawing region.<br />

view_angle[0..7] Rotation angle used for the view in the room (counter-<br />

clockwise in degrees.<br />

view_hborder[0..7] Size of horizontal border around the visible object (in<br />

pixels).<br />

view_vborder[0..7] Size of vertical border around visible object (in<br />

pixels).<br />

view_hspeed[0..7] Maximal horizontal speed of the view.<br />

view_vspeed[0..7] Maximal vertical speed of the view.<br />

view_object[0..7] Object whose instance must remain visible in the view.<br />

If there are multiple instances of this object only the first one is followed. You

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!