Jump to content


Photo

screen changing size


  • Please log in to reply
6 replies to this topic

#1 flxp

flxp

    GMC Member

  • GMC Member
  • 325 posts
  • Version:GM8

Posted 03 May 2012 - 02:52 AM

the gm screen is stretching my sprite...

i have the game in full-scale mode for the res in the global game settings
and i set the border of the window to false
view_wview[0]=window_get_width()
window_set_showborder(0)
window_set_size(window_get_width()+1,480)


i know there is a way to make it not stretch the sprites at all..

Edited by flxp, 04 May 2012 - 04:55 AM.

  • 0

#2 TheouAegis

TheouAegis

    GMC Member

  • GMC Member
  • 12382 posts
  • Version:GM8

Posted 03 May 2012 - 03:09 AM

Set view_wview to the same as view_wport and view_hview to the same as view_hport.

If that doesn't work, keep tweaking the Global Game Settings. Also can try using No Scaling if that's a separate option.
  • 0

"The problem with object-oriented languages is that they've got all this implicit environment that they carry around with them. You wanted a banana but what you've got is a gorilla holding the banana and the entire jungle." -Joe Armstrong

 

"It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical?" -Alan Perlis

 

"Do not think about where you want to be and how to get there; think about what you want to do and how to do it." -Theou Aegis


#3 flxp

flxp

    GMC Member

  • GMC Member
  • 325 posts
  • Version:GM8

Posted 03 May 2012 - 03:15 AM

i'm using GM8 so i don't have that option...
i tweaked the code
view_wport[0]=window_get_width()
view_wview[0]=view_wport[0]
window_set_size(window_get_width()+1,480)

still strecthes... :\

EDIT:
aaand the view is enabled..

Edited by flxp, 03 May 2012 - 03:16 AM.

  • 0

#4 TheouAegis

TheouAegis

    GMC Member

  • GMC Member
  • 12382 posts
  • Version:GM8

Posted 03 May 2012 - 04:39 AM

Are you playing in Full Screen mode? That overrides window dimensions.
  • 0

"The problem with object-oriented languages is that they've got all this implicit environment that they carry around with them. You wanted a banana but what you've got is a gorilla holding the banana and the entire jungle." -Joe Armstrong

 

"It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical?" -Alan Perlis

 

"Do not think about where you want to be and how to get there; think about what you want to do and how to do it." -Theou Aegis


#5 flxp

flxp

    GMC Member

  • GMC Member
  • 325 posts
  • Version:GM8

Posted 03 May 2012 - 08:04 AM

no, i start it at 640x480

look at first post...
  • 0

#6 TheouAegis

TheouAegis

    GMC Member

  • GMC Member
  • 12382 posts
  • Version:GM8

Posted 03 May 2012 - 05:07 PM

*smacks forehead*

First off, you have a semantics error. I think that's the term for it. (I think syntax errors are for typos, but maybe it's a syntax error).

You're setting the view width to the window width and THEN setting the window width. So of course the view won't be the same as the window. You have to set the window width first and THEN set the view width.
  • 0

"The problem with object-oriented languages is that they've got all this implicit environment that they carry around with them. You wanted a banana but what you've got is a gorilla holding the banana and the entire jungle." -Joe Armstrong

 

"It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical?" -Alan Perlis

 

"Do not think about where you want to be and how to get there; think about what you want to do and how to do it." -Theou Aegis


#7 flxp

flxp

    GMC Member

  • GMC Member
  • 325 posts
  • Version:GM8

Posted 03 May 2012 - 11:48 PM

doesn't change a thing..
as far as i know i would have to change the size of the room and restart the room..
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users