Rotate Room

From the forum I found this on "view_angle":
https://docs.yoyogames.com/source/dadiospice/002_reference/windows and views/views/view_angle.html

In my step event of player1:
Code:
   view_angle[0] +=1;
In my room properties, under viewports and cameras I have:
Enable Viewports is checked.
Viewport 0 - visible is checked.

Camera and viewport width and height are the same as the room 1920 and 1080.

When I run the game nothing happens.
Shouldn't the room rotate by +1?

Any guidance would be appreciated.
 
it should rotate. Does an instance of player1 exist? Is it active? Are you in the right room? You haven't diabled the views somwhere, or done anything with drawing that might interfere with this?
 
N

Noba

Guest
Probably a stupid idea, but it could be the size of the view, making it not noticeable. Possibly try a much bigger number, like 50 or 100 or something just to check if it is rotating at all?
 
Bingo! Thanks IndianaBones!

In the create event of player1 I added:
Code:
rotation_degrees=0;
In the step event of player1:
Code:
camera_set_view_angle(view_camera[0], rotation_degrees);
rotation_degrees+=1;
Now the room is rotating. Thank you!
 
Last edited:
Top