AI assisted coding

Not favoritedFavorited Favorited 0 favourites
  • 3 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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