Posts: 5,001
Threads: 616
Joined: Dec 2009
Version 1.1.93 Has Been Released!
Available Platforms
Recent Changes:
- Added Bitmap.max_size that returns the textures' maximum size based on your graphics card.
- Added Graphics.window_size_factor alias resize_window that lets you stretch the game window without changing the game's screen resolution.
- Fixed Window#dispose bug that prevented the engine from reporting any issues either by creating a log file or by displaying the error splash screen.
- Fixed Input.repeat? almost completely. Some keys like ALT, CTRL & SHIFT don't work as of yet.
Graphics.window_size_factor accepts 2 arguments: Scaling Factor (1 or 2) and Centered (a boolean aka true or false)
Script Call Example:
Code: Graphics.window_size_factor(2, false)
Graphics.resize_window(2, true)
You might not notice any important changes on screen if your current  screen resolution is low.
"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.
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!
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
Posts: 5,001
Threads: 616
Joined: Dec 2009
Version 1.1.94 Has Been Released!
Available Platforms
Recent Changes:
Added support for gamepad alert mechanisms by keeping track of its most recent connection or disconnection.
Input module's new methods:
- joystick? or gamepad?
- joystick_updates or gamepad_updates
- joystick_update or gamepad_update
The first call lets you know whether there is any gamepad currently available.
There is only 1 small difference between the second and third call, namely the latter will clear the array after popping the most recent connection or disconnection if any.
How to check if there has been a game connection or disconnection?
Inside a scene's update method you could add something like this:
Code: alias :your_update_alias :update
def update
your_update_alias
if Input.gamepad_updates.any?
print Input.gamepad_update
end
end
To adapt that code to RMVX ACE, you'd just replace print with msgbox or even puts if you're using the console window.
This way you could make sure that you will get an alert, namely a popup window, telling you either that you :add or :remove 'd a gamepad or nil meaning that nothing has changed ever since the last update.
To find out if there is a gamepad plugged in right now just call:
Code: print Input.gamepad?
And it will return a boolean value, either true or false.
"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.
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!
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
Posts: 5,001
Threads: 616
Joined: Dec 2009
Version 1.1.95 Has Been Released!
Available Platforms
Recent Changes:
Added more  game controller related data and an optional feature.
Added Input::Gamepad's MD documentation to the extras/help directory.
Input.gamepad or Input.joystick 's methods: - name
- vendor
- type
- power
- rumble
- last_rumble
- set_rumble
They will let you retrieve: - Name of your controller
- Vendor ID (some useless number)
- Controller type (Gamepad, Arcade Stick, Guitar, etc.),
- Power level (-1 through 5) if data is available
- Rumble & Last Rumble return true if available or sucessful, false otherwise
- Set a Rumble by providing it with a Left Frequency, Right Frequency, and Milliseconds as parameters.
Script Call Examples:
Code: Input.gamepad.set_rumble(500, 1000, 3000)
Input.gamepad.last_rumble
The Input::Gamepad class also includes the DEFAULT_NAME and DEFAULT_VENDOR constants, plus the @@types and @@levels class variables.
"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.
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!
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
|