Does anyone know how to implement a tate-mode in Gamemaker?
Using 'view_angle[0]=90' rotates the view and 'window_set_size(w,h) changes the size but this is not enough it seems.
I'm using a window size of 480x640 with a view of the same size. When switching to tate-mode I change the window size to 640x480 but not the view size.
Tate in Gamemaker
Tate in Gamemaker
It is powerup of laser.
-
worstplayer
- Posts: 861
- Joined: Sun Jun 17, 2007 6:48 pm
- Location: Slovakia
Part of room initialization code from my game:
Maybe it could help. I don't remember how exactly it works anymore.
Code: Select all
if global.tate=1{
view_hview[0]=480
view_wview[0]=640
view_angle[0]=270
view_yview[0]=80
view_xview[0]=-80
view_wport[0]=480
view_hport[0]=640
window_set_region_size(640,480,1)
window_set_size(640,480)
window_set_region_scale(-1,1)
}
"A game isn't bad because you resent it. A game is bad because it's shitty."