• 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!

Legacy GM Can't get size with zoom to work.

O

oziphantom

Guest
What I want:
A window that is 960x600 or 1280x800 etc but the game world is 320x200

so I make a room, and I set settings to be 320x200 and I enable views and view 0 and visible when room starts and I set the view to be
0,0 320,200
and I set the port to be
0,0 320,200
This is to get a simple no zoom case working.

I get this
gameMakerSizeIssue.png

for reference the brown area should be 48x40 and the little guy is about 20 pixels high.

I've disabled interpolation in global settings.

and I have my start up code as such

GML:
global.rm = room_add();

room_assign(room0, global.rm);

room_tile_add(global.rm, tileset, 0, 0, 48, 40, 0, 0, 10000);


room_instance_add(global.rm, 0,0,hero);



room_goto(global.rm);
where hero is the object that shows the guys sprite. and Tileset is a tilset background object.

I have also tried explicitly setting the view to be
GML:
view_visible[0] = true;
view_enabled = true;

view_hview[0] = 200;
view_wview[0] = 320;

view_hport[0] = 200;
view_wport[0] = 320;
no change.

What am I missing?
 
O

oziphantom

Guest
if I don't assign the map it works as expected.

If I duplicate the map rather than assign it then continues to work as expected.
 
Top