GameMaker client for communication with AxelChat via WebSocket
- Run this project and AxelChat to make sure it works. Check if connection to AxelChat is happening
- Copy group (aka folder)
AxelChat Client
with all its contents from this project to your project. FolderAxelChat Client Usage Example
does not need to be copied to your project, use it as a reference on how to use AxelChat Client in your project
- Place
o_axelchat_client
to any room - In
o_axelchat_client
openVariable Definitions
and set variables of instance/object:server_address
- The address of the server where AxelChat is running. If AxelChat is running on the same device as the GameMaker project, then enter127.0.0.1
. Otherwise, you can find the address in the AxelChat settingsserver_port
- AxelChat server port. Usually it is8356
. You can get it in the settings of AxelChaton_connected_script
- Script that will be called upon successful connection to AxelChat. You must create your own script and specify it here. See the example for how the script should look likeon_state_changed
- Script that will be called when the state of AxelChat changes. For example, when the number of viewers changes. You must create your own script and specify it here. See the example for how the script should look likeon_message_received_script
- Script that will be called when a message is received. You must create your own script and specify it here. See the example for how the script should look like
- Launch the room where the
o_axelchat_client
is located. Connection to AxelChat will occur automatically if AxelChat is launched and parameters ofo_axelchat_client
are specified correctly
Just destroy instance of o_axelchat_client