Input listener question

Triztan

Warper
Member
Joined
Jul 30, 2017
Messages
2
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
Just started working on RPGMMV and after some code reviews i was not able to find a right way to register an event listener for a key in a map.
I saw a "tutorial" where the guy adds to an event.update function an alias to add there a check to his input, for example Input.isTriggered("ok") with an IF statement...
I really don't like that solution, is there a way to register a listener in a stack of listeners or something like that?
Are those arrow keys for example being listened from the registration of a map? Is it mandatory to loop on something?
Instead of looping on something i would preffer to add the listener directly on the document
Thanks for the help! I hope next time i would be able to help you too :)
 

Triztan

Warper
Member
Joined
Jul 30, 2017
Messages
2
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
Dunno if it is the right way, but will use the Game_Player :/
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top