• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GMS 2: Simplest solution to view

Spring

Member
Goal:
Pixel-perfect display of a specific region in the room

Problem:
Everything I tried so far doesn't work and only makes me more confused :c

Elaboration:

My game takes place entirely in a 2000x2000 room, the "camera" (using that word loosely here because the technical definition of that is super complicated) should only show a rectangular part of the room (centered at 1000,1000) whose width and height is the same as the game window's size (or full screen size, if possible).

I tried to mess with the variables and functions with the words "view" and "camera" in them, but, the more I looked the more complicated things got. At this point I'd really appreciate it if someone could just write a block of code here that does the above, I'll even credit you in the final game, if I get that far. Thanks in advance
 
Top