CheatCoder
Easily add cheat codes to your Godot project with a few simple clicks.
Install / Use
/learn @Hugo4IT/CheatCoderREADME
CheatCoder
Add cheat codes to your game with just a few clicks
Installation
Automatic
WARNING: This method is not yet available, as it is not yet approved for the asset library.
- Search "CheatCoder" in the Asset Library
- Click Download, then install
- In
Project Settings>PluginssetCheatCodertoEnabled
Manual
- Copy the
CheatCoderfolder (insideaddons) and paste it in your project'saddonsfolder (folder must be named exactlyaddons, otherwise godot wont detect it) - Enable the addon inside Project > Project Settings > Plugins > Click
Enablefor the CheatCoder plugin
Usage
<details> <summary> Creating a cheat code </summary>Cheat codes are just resources, which means they are stored in the filesystem. To create one, just add a resource of type CheatCode:

Double-clicking it in the inspector reveals a single property: "entries". This is a list of keys that will need to be pressed in the correct order to activate the cheat code.

Now set how many buttons it will contain:

And fill it with whatever you want:

Now that you've created a cheat code, it's time to use it. A CheatCodeListener node checks for player input matching the cheat code, and will emit a signal when it's a match. So, add a CheatCodeListener node:

The node has some values you can tweak, here is a brief overview:

| Name | Description | Default |
| :--------------- | :--------------------------------------------------------------------------------- | :-----: |
| allow_mistakes | If this is checked, the listener will ignore keys that don't match the cheat code | false |
| has_timeout | If no matching key is pressed within [timeout_delay] seconds, it will start over | true |
| timeout_delay | See description for has_timeout | 2.0 |
| disabled | This explains itself... | false |
| repeat | When false, the cheat code can only be activated once. | false |
| code | Put your CheatCode in here | null |
Now add the cheat code you just created:
https://user-images.githubusercontent.com/48245742/151665274-cf19aa34-5a15-4769-a828-e52612f00c7f.mp4
You can now connect these signals to whatever function you please:

| Name | Use | Signature |
| :---------------- | :------------------------------------------------------------------------------------------------------------- | :--------------------------------- |
| cheat_activated | Fired when the full cheat<br> code was executed | func name() -> void |
| cheat_progress | Fires when the correct<br> key is pressed. Also <br> fires progress = 0 <br> when a wrong key is<br> pressed | func name(progress: int) -> void |
Demo
To see CheatCoder in action, click here
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
