K
KarateMan
Guest
Hey!
So in my current project I'm working on Ibe got it so when you press a button you can change the direction of gravity 90 degrees. I want to be able to rotate the camera with it, I've been trying to get the camera angle to change but for some reason nothing changes.
I have a camera object
Create event:
View_camera[0] = camera_create_view(0,0,1024,768,0,noone,-1,-1,-1,-1);
If !view_enabled {
View_visible[0] = true;
View_enabled = true;
}
And then in my gravity changing script:
If grav_right = 1 && global.grav =0{
Global.grav=1;
Camera_set_view_angle(view_camera[0],90);
Exit;
}
The gravity changing is working, but the camera doesn't seem to be showing properly. If I set the cameras starting angle to 90, nothing changes. But if I put a debug message to return the camera angle it does come back 90 but I'm not seeing any change.
Any help would be awesome!
So in my current project I'm working on Ibe got it so when you press a button you can change the direction of gravity 90 degrees. I want to be able to rotate the camera with it, I've been trying to get the camera angle to change but for some reason nothing changes.
I have a camera object
Create event:
View_camera[0] = camera_create_view(0,0,1024,768,0,noone,-1,-1,-1,-1);
If !view_enabled {
View_visible[0] = true;
View_enabled = true;
}
And then in my gravity changing script:
If grav_right = 1 && global.grav =0{
Global.grav=1;
Camera_set_view_angle(view_camera[0],90);
Exit;
}
The gravity changing is working, but the camera doesn't seem to be showing properly. If I set the cameras starting angle to 90, nothing changes. But if I put a debug message to return the camera angle it does come back 90 but I'm not seeing any change.
Any help would be awesome!