![]() ![]() Of course you can put them on a timer or use the auto update script I'll cover later. You only need to call each script onceįor it to request the info. Wasteful, but it will probably crash the game/cause unexpected errors. You can drop these scripts anywhere in your code, just note that putting them in the step event is not only Next we move on to the part where we ask Twitch for stream details. Twitch_stream_get_thumbnail( channel_id, size ) Then I'll quickly go over the chat functions. With the new version, you can even send and receive chat messages to any live stream!īelow, I'm going to initially go into detail on the process of how to get the details of any live stream using Initialization -> Request Info -> Receive Info -> Utilize Info Getting stream details is easy as pie as soon as you understand the workflow. This interface uses only fifteen scripts, all vanilla code withouth any extensions or included files. You say lightweight, how complicated is it? GMTwitch is a lightweight, open source Twitch API wrapper/interface for Game Maker: Studio Previous Updates: Added the ability to chat using four new functions described at the bottom of this doc! See the section on Initialization below for instructions for getting a Twitch Client ID for your application. Going forward, you will have to supply a Twitch Client ID as an argument with the initialization script: twitch_init(clientID). MAJOR UPDATE: Each HTTP request to Twitch now requires a Client ID inside the header.
0 Comments
Leave a Reply. |