Tate in Gamemaker

A place for people with an interest in developing new shmups.
Post Reply
320x240
Posts: 655
Joined: Fri Nov 16, 2007 12:07 pm
Location: France

Tate in Gamemaker

Post by 320x240 »

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.
It is powerup of laser.
User avatar
worstplayer
Posts: 861
Joined: Sun Jun 17, 2007 6:48 pm
Location: Slovakia

Post by worstplayer »

Part of room initialization code from my game:

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)
}
Maybe it could help. I don't remember how exactly it works anymore.
"A game isn't bad because you resent it. A game is bad because it's shitty."
320x240
Posts: 655
Joined: Fri Nov 16, 2007 12:07 pm
Location: France

Post by 320x240 »

Thanks. I will try your code tomorrow. I'm sure I'll be able to work something out based on that.
It is powerup of laser.
Post Reply