Icon

SN - KeyboardControl

Kanelbull3 Studios

You must be logged in to obtain assets

Contact Publisher

Description

This extension requires SimpleNetwork, get it here

A small extension to SimpleNetwork, which will give a way to send keypresses to the server.

Example:

net_button_bind("Jump", vk_space); net_button_bind("Left", ord("A")); net_button_bind("Right", ord("D"));

The server then recieves the button presses and will store the keys in the obj_keyboard_controller.

The server can then check if a button is pressed down by calling:

net_button_is_down("Jump", clientSocket);

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.2.1. Published September 13, 2016

Keys are now registered as Name-Key pairs, this makes it so the server can check for specific names, like "Jump", instead of keys like "vk_space". This allows the client to change their key bindings.

Added functions:

  • net_button_bind - Binds a name with a key
  • net_button_rebind - Rebinds a name with a key
  • net_button_is_pressed - Checks if the button was just pressed
  • net_button_is_released - Checks if the button was just released
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top