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.

• When you use the 3D functionality, there are a number of other things that can no<br />

longer be used.<br />

o You cannot use background and foregrounds in your rooms anymore. (The<br />

reason is that they are tiled to fill the image but <strong>with</strong> perspective projections<br />

this no longer work correctly).<br />

o You cannot use the mouse position anymore. The mouse will not be<br />

transformed to the 3D coordinates. You can still get the position of the mouse<br />

on the screen (in the view) but you will have to do calculation <strong>with</strong> this<br />

yourself (or not use the mouse at all).<br />

o You cannot use tiles anymore. Tiles will most likely no longer match up<br />

correctly.<br />

o Collision checking still uses the 2-d positions of the instances in the room. So<br />

there is no collision detection in 3D. Sometimes you can still use this (if you<br />

use the room as a representation of a flat world (e.g. for racing or FPS games)<br />

but in other situations you have to do things yourself.<br />

• All 3D functionality is through code. You must be rather fluent <strong>with</strong> the GML language.<br />

Also you must really understand a lot about how <strong>Game</strong> <strong>Maker</strong> works otherwise you will<br />

run into trouble.<br />

• You must have some basic knowledge about 3D graphics. In particular I will use terms<br />

like perspective projections, hidden surface removal, lighting, and fog, <strong>with</strong>out much<br />

explanation.<br />

• There is no 3D modelling in <strong>Game</strong> <strong>Maker</strong>. Also I do not plan on adding support for<br />

loading 3D models.<br />

• You must work carefully to keep a reasonable speed. Also, things are not really<br />

optimized for speed.<br />

If this did not discourage you, read on.<br />

Going to 3D mode<br />

If you want to use 3D mode you first need to set <strong>Game</strong> <strong>Maker</strong> in 3D mode. You can later<br />

switch back to 2D mode if you want. The following two functions exist for this.<br />

d3d_start() Start using 3D mode. Returns whether successful.<br />

d3d_end() Stop using 3D mode. Returns whether successful.<br />

Note that all functions related to 3D mode start <strong>with</strong> d3d_.

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

Saved successfully!

Ooh no, something went wrong!