Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Changing Resolution  (Read 2684 times)

0 Members and 1 Guest are viewing this topic.

greg

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
    • View Profile
Changing Resolution
« on: April 10, 2007, 05:22:40 AM »

Is it possible to change resolutions in the middle of the game?  My game is 1024x768, but, to save disk space, when playing full-screen cinematics (in Theora format), I would like to change the resolution to 640x480, so that 640x480 videos appear to be full-screen.

Alternately, is it possible to scale an 640x480 Theora file in WME so that it fills the entire 1024x768 screen?

Thanks,
Greg
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Changing Resolution
« Reply #1 on: April 10, 2007, 06:14:44 AM »

It's not possible to change resolution while you are in-game but you can scale videos.
Check http://docs.dead-code.org/wme/generated/scripting_ref_game.html#PlayTheora
for Game.PlayTheora(Filename, Type, X, Y, FreezeMusic, DropFrames)
where type defines if the video will be stretched or not.
In case you are using the method PlayTheora for entities you can affect the scale with the Scale attribute.
Logged
fl*p
 

Page created in 0.032 seconds with 23 queries.