RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VXA] Title screen stretch

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 81
RMRK Junior
hi all im using yanflys core engine and i can get all battle backgrounds and menus to stretch to fit the screen but i can not get the title screen to auto stretch can some one help here

****
Rep:
Level 71
I'll check for one but you can just export the file and then set the dimensions to 640 X 480 with PS or GIMP.

**
Rep: +0/-0Level 81
RMRK Junior
yh i know you can do that just trying to save copying files and making the project bigger

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Well, you could paste the following into its own slot in the Script Editor:

Code: [Select]
class Scene_Title
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Create Background
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias apoclaydon_stretchtitle_createbg_2hj9 create_background
  def create_background(*args, &block)
    apoclaydon_stretchtitle_createbg_2hj9(*args, &block) # Call Original Method
    [@sprite1, @sprite2].each { |sprite|
      bmp = sprite.bitmap
      sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
      sprite.bitmap.stretch_blt(sprite.bitmap.rect, bmp, bmp.rect)
      bmp.dispose
      center_sprite(sprite)
    }
  end
end

Untested, but it ought to work as long as the screen is resized before the title screen is created.

**
Rep: +0/-0Level 81
RMRK Junior
that worked great thank you i know this is a cheeky req but how hard would it be to stretch video files to fit the screen resolution?

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
I haven't investigated, but I think it would be hard. I think you'd need to entirely rewrite the way that video files are played.

*
Rep:
Level 82
The help file says this:

"Movies are displayed over the center of the game screen. Movies larger than the screen size (544×416) will have their edges cut off to fit within the screen."

Have you tried using a video that has the resolution of the new screen size? It may not be cut due to the game resolution being larger now. If it does work, you can probably use other software tools to scale up the video as desired.

Note: I can't say I have too much knowledge about this subject, so I'm going by what sounds intuitively logical.
(Why do I always feel like it's the end of the world and I'm the last man standing?)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
@Logan - yeah, but I got the impression he was looking to give the player a configurable option to determine resolution and didn't want to include two copies of every resource. I am inferring that from this exchange:

I'll check for one but you can just export the file and then set the dimensions to 640 X 480 with PS or GIMP.
yh i know you can do that just trying to save copying files and making the project bigger

**
Rep: +0/-0Level 81
RMRK Junior
yh modern algebra is correct but if its not possible then i'll have 2 rethink

*
Rep:
Level 82
It was more of a suggestion of a way to try solve the issue, since the more obvious way of scripting it would appear to be a little difficult. It wouldn't be too bad if you could see inside Graphics and see what that normally does to try to add something to it.

It's obvious from the description in the help file that videos especially aren't scaled down if they are bigger, thus implying that no algorithm exists in the coding for down or upscaling. You'd have to do this yourself.

The thing about scaling is that if you stretch it too much you end up with artefacts, unless you do some kind of upscaling before you apply the image. The same would be true of videos.

It may be possible using video processing ideas, but how much work it would take I have no idea. It may also limit the platforms that can play the game. Considering that videos are only cut when larger than the resolution and are played centrally in the window, as long as the resolution that a player chooses isn't less than the video resolution, and was maybe proportional to the video, it wouldn't look awful. A lot of old games used to have a set video resolution but had scaled images, probably because it was easier to render images in different resolutions than videos.
(Why do I always feel like it's the end of the world and I'm the last man standing?)