Basic Width and Height
#1
Basic Width and Height
"Scripting Tool"

This snippet or scriptlet should be placed above Main and any other custom script that might depend on the window width and height. The scriptlet should detect which version of RGSS you are currently running so you can safely play XP or VX games. VX Ace does not need this.

Code:
unless Graphics.respond_to?(:width)

module Graphics
  found = Object.constants.respond_to?('Sound')
  @width = found ? 544 : 640
  @height = found ? 416 : 480
  def self.width
    @width
  end

  def self.height
    @height
  end
end

module RPG::Cache
  def self.face(name)
    load_bitmap('Graphics/Faces/', name).dup
  end
end

end

Terms

You should not credit me for this simple snippet. Use it as much as you need to or simply ignore it. Laughing + Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   DoubleX RMVXA Basic ATB Bar DoubleX 1 5,785 09-09-2015, 09:52 AM
Last Post: DoubleX
   DoubleX RMVXA Basic ATB Delay DoubleX 0 3,498 08-09-2015, 04:26 AM
Last Post: DoubleX
   DoubleX RMVXA Basic ATB DoubleX 3 8,198 08-05-2015, 11:45 AM
Last Post: DoubleX
   Victor Engine - Custom Basic Actions Victor Sant 0 4,799 01-12-2012, 03:41 AM
Last Post: Victor Sant
   Victor Engine - Basic Module Victor Sant 0 6,279 12-21-2011, 07:46 AM
Last Post: Victor Sant



Users browsing this thread: 1 Guest(s)