GameMaker | Chat GPT + GameMaker | Connect OpenAI to your Video-Game @GameMakerEngine | Uploaded April 2023 | Updated October 2024, 1 hour ago.
In this programming tutorial, you'll follow along with GameMaker developer David Strachan as he connects OpenAI's ChatGPT to GameMaker using GML code.
Learn how to:
- Connect your Video Game to OpenAI's ChatGPT
- Use APIs in GameMaker
- Get AI chat to answer questions and more
Download the project: github.com/DavidStrachan/GM_PAL-S1E2-ChatGPT
Download GameMaker: https://opr.as/DownloadGM-YT
Find David Strachan:
twitter.com/DavesInHisPants
https://mastodon.gamedev.place/@MrDave
0:00 Intro
0:29 Start the project
1:16 More about ChatGPT
3:14 Completions - How to send a request to Chat GPT
5:05 How to get an API key
5:47 Working out what we can send to the server
8:16 Starting the code to send the request
11:43 Starting the code to receive the response
13:36 Fixing our first problems
19:38 Sending our first request
23:31 Displaying the response
26:27 Improving the dispatched message
30:09 Getting some intelligent answers
37:09 Adding buttons to dispatch requests
44:27 Asking new questions
46:49 Playing with other features
53:29 The finished version
53:45 Outro
In this programming tutorial, you'll follow along with GameMaker developer David Strachan as he connects OpenAI's ChatGPT to GameMaker using GML code.
Learn how to:
- Connect your Video Game to OpenAI's ChatGPT
- Use APIs in GameMaker
- Get AI chat to answer questions and more
Download the project: github.com/DavidStrachan/GM_PAL-S1E2-ChatGPT
Download GameMaker: https://opr.as/DownloadGM-YT
Find David Strachan:
twitter.com/DavesInHisPants
https://mastodon.gamedev.place/@MrDave
0:00 Intro
0:29 Start the project
1:16 More about ChatGPT
3:14 Completions - How to send a request to Chat GPT
5:05 How to get an API key
5:47 Working out what we can send to the server
8:16 Starting the code to send the request
11:43 Starting the code to receive the response
13:36 Fixing our first problems
19:38 Sending our first request
23:31 Displaying the response
26:27 Improving the dispatched message
30:09 Getting some intelligent answers
37:09 Adding buttons to dispatch requests
44:27 Asking new questions
46:49 Playing with other features
53:29 The finished version
53:45 Outro