How can I protect my game from source code hacking and memory variable changing?

Hello. How can I protect my game from source code hacking and memory variable changing using tools like Cheat Engine? I saw a programm which can get full godot game project which you can edit. I want to protect my game from this. I want players not to be able to change the scripts in my game. I also want players to not be able to change variables in memory using tools like Cheat Engine.

Thanks.

You can’t, at some point everything goes into memory and can be read and changed, that’s how the program works.
Perhaps a complex system with encryption can make the task more difficult, but it is not worth the time (there are huge books about encryption, you can learn a lot, but I think it’s a whole new world)
Another approach is a centralized server that verifies every goal achieved by the user, but you need a server that is available 24/7.
If you make an “anti-cheat” some cracker with insomnia will bypass it just for fun.
I think it is better to spend time looking for bugs than starting a war that is already lost.

1 Like