Description

Set of scripts that interact with a persistent object instance called obj_nes_like_keyboard_input that mimic the NES control scheme.

This object can have only one instance(further instances will be destroyed on the create event code) and contain the keys value and their states(down,hit,release). Those states will be update on the begin step code.

-Keyboard- -Nes CounterPart/Var Name- -RELATED SCRIPT- UP NES_BTN_UP NLKI_UP LEFT NES_BTN_LEFT NLKI_LEFT DOWN NES_BTN_DOWN NLKI_DOWN RIGHT NES_BTN_RIGHT NLKI_RIGHT Z NES_BTN_A NLKI_A X NES_BTN_B NLKI_B ENTER NES_BTN_START NLKI_START BACKSPACE NES_BTN_SELECT NLKI_SELECT

//GENERIC//-> Used for input checking *if the obj doesn't exists(or has more than 1 istances) those scripts return 0;

NLKI_exists()< -> return 1 if exists at least one obj_nes_like_keyboard_input instance, 0 otherwise.

NLKI_valid()*< -> check if exists only ONE obj_nes_like_keyboard_input, return 1 if true, 0 if false(used by the scipts marked as *)

NLKI_get_id()< -> get the id of the obj_nes_like_keyboard_input's instance, otherwhise return noone

NLKI_set_default()*< ->set the default control scheme

NLKI_clear_states()*< ->set to 0 all the key states

NLKI_is_active()*< ->check if the the obj_nes_like_keyboard_input's instance is active(an inactive obj_nes_like_keyboard_input's instance skip the updating states code)

NLKI_disable()*< ->set to 0 the obj_nes_like_keyboard_input's instance's active 'flag' and clear all key the states(calls NLKI_clear_states())

NLKI_enable()*< ->set to 1 the obj_nes_like_keyboard_input's instance's active 'flag'

//KEY RELATED//-> Used for input checking *if the obj doesn't exists(or has more than 1 istances) those scripts return 0; Note: check the -RELATED SCRIPT- section for the part ES:NLKI_UP(), NLKI_A_HIT() etc.

NLKI_()*< ->get the current down state value of NLKI_HIT()*< ->get the current hit state value of NLKI_RELEASED()*< ->get the current release state value of

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 0.0.2. Published January 14, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top