AI assisted coding

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
5 levels with simple coding Source-code (.c3p) + HTML5 Exported
  • Hello;

    I have been using AI assisted coding with the Fortnite games, and also with the new chatgpt5 with python and pygame. I wish I could do something similar with construct 3. I believe if I were writing code in typescript I could probably get help from chatgpt5 but if I am using the event "no code" construct3 system I am pretty much out of luck. If you want an easy taste to see what I mean, just use the new chatgpt5 to write a minigame in javascript. I hope that we can get something similar here for the event system.

    Does anyone else use the coding AI?

    yours

    winkr7

  • I use AI quite a lot, but in general I use it to teach me how to do something rather than asking it to do that thing for me. If I try using it to say write some code for me, it might work, but I'll end up with something that I don't understand and is hard to extend or bug fix.

    I've found that ChatGPT's capabilities with Construct has improved significantly over the past few months - it seems to have a much better understanding of C3's event system.

  • AI can analyze C3 events if you simply copy and paste them. For example, this may look like gibberish to the human eye, but ChatGPT can easily read it:

    {"is-c3-clipboard-data":true,"type":"events","items":[{"functionName":"SaveGame","functionDescription":"Save Game","functionCategory":"Save&LoadSystem","functionReturnType":"none","functionCopyPicked":false,"functionIsAsync":false,"functionParameters":[{"name":"SaveSlot","type":"string","initialValue":"","comment":""},{"name":"Level","type":"number","initialValue":"0","comment":""},{"name":"PlayerPosX","type":"number","initialValue":"0","comment":""},{"name":"PlayerPosY","type":"number","initialValue":"0","comment":""}],"eventType":"function-block","conditions":[],"actions":[{"id":"set-value","objectClass":"GameData","parameters":{"path":"\"slot_\" & SaveSlot & \".currentLevel\"","value":"Level"}},{"id":"set-value","objectClass":"GameData","parameters":{"path":"\"slot_\" & SaveSlot & \".level_\" & Level & \".player_x\"","value":"PlayerPosX"}},{"id":"set-value","objectClass":"GameData","parameters":{"path":"\"slot_\" & SaveSlot & \".level_\" & Level & \".player_y\"","value":"PlayerPosY"}},{"id":"set-item","objectClass":"LocalStorage","parameters":{"key":"\"GameData\"","value":"GameData.ToCompactString"}}],"children":[{"eventType":"block","conditions":[{"id":"layer-name-exists","objectClass":"System","parameters":{"layer":"\"GameSaved\""}}],"actions":[{"id":"set-layer-visible","objectClass":"System","parameters":{"layer":"\"GameSaved\"","visibility":"visible"}}]},{"eventType":"block","conditions":[{"id":"pick-all","objectClass":"System","parameters":{"object":"Text2"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"has-tags","objectClass":"Text2","parameters":{"tags":"\"GameHasBeenSuccessfullySaved\""}}],"actions":[{"id":"set-text","objectClass":"Text2","parameters":{"text":"\"The game has been successfully saved in slot\" & newline & \"GAME_\" & SaveSlot & \"!\""}}]}]}]}]}

    It can then give you advice on how to fix a bug or optimize your code. AI can also generate events that you can paste back into the event sheet, but this can be hit or miss.

  • Using AI in your projects can assist you with practical tasks. For example, if you're starting to localize your game into other languages and want a sample JSON file with a ready-made example, you can use this sample as a foundation and adapt it for your project.

    Or, perhaps you want to implement a specific game mechanic but aren't sure where to start. AI can explain the key aspects you should consider before beginning development. This can significantly save time and help you avoid many flawed decisions.

    Here's another example: let's say you want to create a puzzle game similar to one you saw on Google Play. Ask the AI to write the pseudocode for that game. Then, based on this pseudocode, create your events in Construct 3.

    However, don't expect AI to start creating games for you anytime soon. AI is a tool in the hands of developers. The mastery in using this tool depends entirely on the user's skill.

  • If you take a look at stackblitz and use their bolt ai (which is claude 3.x) you will see the AI can build games for you. They need your help, especially in finding bugs, but the AI can do it if you let it evolve over time. Unfortunately it is pretty expensive if you turn the AI smarts up all the way and let it think as much as it likes it burns a hole in your pocket.

    However, lots of people say they design games to learn how to program, to learn a programming language etc. If you aren't working with an AI on your game project you are missing the main skill you are going to need--how to wrangle the AI.

  • I really don't need AI, but it's useful sometimes.

    AI can build games for you

    I don't want AI to do my hobby for me, I want AI to do the dishes and clean the toilet

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • AI can def help or teach you various things or help debug certain issues.

    But it's def not the best. There's many times where it couldn't figure out what I was doing and I wasted time where if I would've just researched or tinkered and messed with the events/actions have a more favorable outcome quicker.

  • Construct is easy enough. You would probably spend more time on promting than setting up a game. I don't see the reason why not just complete a couple of tutorials and learn the damn thing. Took me half an hour to get the gist of it. Construct is really good for learning how programming works.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)