This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ixe:irpl:game:setcamerazoom [2025/01/16 18:36] – Tag cnversion Karsten75 | ixe:irpl:game:setcamerazoom [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Description ===== | ===== Description ===== | ||
| - | Sets the camera zoom. The zoom is the orthographic | + | Sets the camera zoom. The zoom is equal to half the vertical | 
| ===== Examples ===== | ===== Examples ===== | ||
| <code 4rpl> | <code 4rpl> | ||
| + | |||
| + | SetCameraZoom(256) | ||
| + | # This sets the viewport' | ||
| + | |||
| + | GetScreenSize -> | ||
| + | SetCameraZoom(< | ||
| + | # This sets the camera to a fixed resolution of 4 screen pixels per world pixel regardless of screen size | ||
| + | |||
| </ | </ | ||