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

Zoom out from current view

I'm working on a cutscene. My current view in room is at 320 x 240, while my port on screen is 640 x 480. I also have an object (obj_view) that follows the player for better camera control.

Create Event:
Code:
//move to player


if (global.boy) && (!instance_exists(obj_nonplayer1_up)){ //follow player 1
    x = obj_player.x;
    y = obj_player.y;
    }
if (global.boy) && (instance_exists(obj_nonplayer1_up)){ //follow nonplayer 1
    x = obj_nonplayer1_up.x;
    y = obj_nonplayer2_up.x;   
    }
if (global.girl) && (!instance_exists(obj_nonplayer2_up)) { //follow player 2
    x = obj_player2.x;
    y = obj_player2.y;
    }
if (global.girl) && (instance_exists(obj_nonplayer2_up)) { //follow nonplayer 2
    x = obj_nonplayer2_up.x;
    y = obj_nonplayer2_up.y;
}
Step Event:
Code:
///follows the player

if (global.boy = true) && (!instance_exists(obj_nonplayer1_up)) //follow player 1
{
x += (obj_player.x - x) * .6 ;
y += (obj_player.y - y) * .6 ;
}

if (global.girl = true) && (!instance_exists(obj_nonplayer2_up)) //follow player 2
{
x += (obj_player2.x - x) * .6 ;
y += (obj_player2.y - y) * .6 ;
}

if (global.boy = true) && (instance_exists(obj_nonplayer1_up)) //follow nonplayer 1
{
x += (obj_nonplayer1_up.x - x) * .3 ;
y += (obj_nonplayer1_up.y - y) * .3 ;
}

if (global.girl = true) && (instance_exists(obj_nonplayer2_up)) //follow nonplayer 2
{
x += (obj_nonplayer2_up.x - x) * .6 ;
y += (obj_nonplayer2_up.y - y) * .6 ;
}
Just a few things to know. The player can choose between a boy or a girl. The
"nonplayers" are the ones present during the cutscene while the regular players aren't.

Now what I'm wanting to do is create some kind of "zoom effect" that, at a certain point in the cutscene, causes the 320x240 view to increase to a bigger view (so as the player can see important parts of the room). I want the increase to be rather quick. How do I do this?
 
Top