AWorks Input Module
Version: 3.00
Author: AWorks(vgvgf)
Date: 26/01/2009(Day/Month/Year)
Description
This script simulates the RGSS module "Input". It is not the original module, but it has all the original module functions and some new.
Version History
- 3.00 - Use of a DLL for faster proccessing.
Features
- All original RGSS Input module features
- All keyboard and mouse keys support
- Key release detection
- Mouse cursor detection
- Mouse double click detection
- Mouse dragging detection
Planned Features
- Mouse wheel support
- Writing system
- Key combinations
- Suggest your ideas
Script & Demo
ADemo XP.rar (http://www.fileden.com/files/2007/2/10/757733/RPGM/AWorks/ADemo%20XP.rar)
ADemo XP.zip (http://www.fileden.com/files/2007/2/10/757733/RPGM/AWorks/ADemo%20XP.zip)
AWorks Script Pack.rar (http://www.fileden.com/files/2007/2/10/757733/RPGM/AWorks/AWorks%20Script%20Pack.rar)
AWorks Script Pack.zip (http://www.fileden.com/files/2007/2/10/757733/RPGM/AWorks/AWorks%20Script%20Pack.zip)
Instructions
Instalation
Place the DLL provied in your game project. Add the "ALibrary" script in a new section before "Main", followed by the script "AIM" and "AKM". If you want to add mouse support to the Input module add the script "AIM M", and it is highly recommended to add the compability patch "AIM PXP".
Special Thanks
- Poccil(Peter O.)
- - For his researchs on modifing ruby objects with C
- ERZENGEL
- - For his help in editing ruby strings with C
Notes
- This script is compatible with both makers: RMXP and RMVX, RGSS and RGSS2.
- This script wasn't designed for non scripters, and may be hard to understand and use. However, I will try to help everybody.
Credits
I would like to be credited if you use my script.
All keyboard + mouse keys are listed in the Keys module. For seeing if for example the key G is pressed, do:
if Input.press?(Keys::G)
[...]
end
how do i add keys?
Well, I don't understand what "add keys" exactly means. If you want, for example to make some action to be called by a key trigger, it depends on the action you want to call.
how do i activate keys?
Pressing the keys in the keyboard? Or what do you mean?
how do i use this other than put it in...lol
If you don't know scripting this may be a bit difficult to implement, but it shouldn't be really complicated. Also, using this script for something depends totaly in what you want to do. For example, if you want to make the player to run when pressing the F key, you had add to the method update from Game_Player for example:
if Input.press?(Keys::F)
@move_speed = 5
else
@move_speed = 4
end
If you want to make for example a Monster book scene when pressing the key M, you had to add to somewhere in Scene_Map:
if Input.trigger?(Keys::M)
$scene = Scene_MonsterBook.new
end
So it totaly depesn on what do you want to do. If you explain me a bit what do you want, I will try to help you.