Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Anti-Cheat Detection?
- ValientLegacy
- Scratcher
100+ posts
Anti-Cheat Detection?
I'm making a Cloud Game with a Money Variable that saves. And I was wondering is there a way to make it that if the player cheats and changes the Money Variable. The game will not save the Variable, or The game saves the old Value.
Last edited by ValientLegacy (Dec. 15, 2016 02:37:25)
when green flag clicked
forever
say [Never give up]
say [Stay focused]
say [Stay positive]
say [Stay strong]
end
- ValientLegacy
- Scratcher
100+ posts
Anti-Cheat Detection?
But the Money Variable is gonna be saved through a normal Variable not a Cloud Variable. Editing other's projects with cloud data disables changes to the cloud data for you, so they shouldn't be able to.
There is still a way to edit cloud data with other programs, which you cannot prevent by code in the project.
when green flag clicked
forever
say [Never give up]
say [Stay focused]
say [Stay positive]
say [Stay strong]
end
- awesome-llama
- Scratcher
1000+ posts
Anti-Cheat Detection?
You said cloud game with a variable that saves.But the Money Variable is gonna be saved through a normal Variable not a Cloud Variable. Editing other's projects with cloud data disables changes to the cloud data for you, so they shouldn't be able to.
There is still a way to edit cloud data with other programs, which you cannot prevent by code in the project.
There still isn't much you can do about it. There is always a way to get free money.
One way I can think of to try preventing it is by a script that detects if the variable changed unexpectedly. In your game, there is another variable which switches to 1 when the money is going to change, and back to 0 when it isn't. Another script detects if the money has changed while the other variable is still 0, meaning it was unexpected. Then the money is reset or the project is stopped.
- ValientLegacy
- Scratcher
100+ posts
Anti-Cheat Detection?
Thanks I'll try that.You said cloud game with a variable that saves.But the Money Variable is gonna be saved through a normal Variable not a Cloud Variable. Editing other's projects with cloud data disables changes to the cloud data for you, so they shouldn't be able to.
There is still a way to edit cloud data with other programs, which you cannot prevent by code in the project.
There still isn't much you can do about it. There is always a way to get free money.
One way I can think of to try preventing it is by a script that detects if the variable changed unexpectedly. In your game, there is another variable which switches to 1 when the money is going to change, and back to 0 when it isn't. Another script detects if the money has changed while the other variable is still 0, meaning it was unexpected. Then the money is reset or the project is stopped.
when green flag clicked
forever
say [Never give up]
say [Stay focused]
say [Stay positive]
say [Stay strong]
end
- Joshia_T
- Scratcher
500+ posts
Anti-Cheat Detection?
There is no way except using extensions like (removed by moderator - please don't name browser extensions), it has the features to stop the project if the person is in editing mode(but I don't think Scratch supports this either) so what you can do is converting it to .swf then to .exe so that they can't see the scripts. But that will disable the cloud feature anyways…
Last edited by Paddle2See (Jan. 25, 2022 09:55:57)
- scoob2016
- Scratcher
1 post
Anti-Cheat Detection?
I think that you should write that if it is within a humanly possible range then OK otherwise don't count it like I did in this game I made https://scratch.mit.edu/projects/235923832/#player ! for example
when backdrop switches to win:
if time<30 then
say cheat
else
if time>highscore:
set highscore to time
when backdrop switches to win:
if time<30 then
say cheat
else
if time>highscore:
set highscore to time
- Joshia_T
- Scratcher
500+ posts
Anti-Cheat Detection?
https://scratch.mit.edu/projects/235923832/#player ! for exampleStill does not stop people from cheating, it only limits the high score. Also do not bump old posts. (last reply was 2016 why bump) I think that you should write that if it is within a humanly possible range then OK otherwise don't count it like I did in this game I made
when backdrop switches to win:
if time<30 then
say cheat
else
if time>highscore:
set highscore to time
- UsernameWasTaken194
- Scratcher
31 posts
Anti-Cheat Detection?
Editing other's projects with cloud data disables changes to the cloud data for you, so they shouldn't be able to.
There is still a way to edit cloud data with other programs, which you cannot prevent by code in the project.
Which programs?
- RockinRooster9
- Scratcher
100+ posts
Anti-Cheat Detection?
Editing other's projects with cloud data disables changes to the cloud data for you, so they shouldn't be able to.
There is still a way to edit cloud data with other programs, which you cannot prevent by code in the project.
Which programs?
Please don't necropost. The last post here was 2 years ago.
ROOSTER
Games
Cool Projects
And More…
- minecrafter_700
- Scratcher
5 posts
Anti-Cheat Detection?
I know im realy realy late but a simple approach is to do this:
variables, key, cash, old cash
When green flag clicked
{
set (key) to ()
set (old cash) to
wait (5) seconds
//the wait is so that your scripts can change cash to what ever
Forever
{
If ([not[()old cash)]]) then
{
Set (cash) to ()
//you can do what ever you want here but i would do this just incase
}
set (Old cash) to ()
}
}
variables, key, cash, old cash
When green flag clicked
{
set (key) to ()
set (old cash) to
wait (5) seconds
//the wait is so that your scripts can change cash to what ever
Forever
{
If ([not[()old cash)]]) then
{
Set (cash) to ()
//you can do what ever you want here but i would do this just incase
}
set (Old cash) to ()
}
}
- Yusei-Fudo
- Scratcher
1000+ posts
Anti-Cheat Detection?
I know im realy realy late but a simple approach is to do this:
- snip -
Hi, please do not reply on old topics, this is known as necroposting, and it's seen as a form of spam. thanks.
I'm a decent coder who has a huge passion for coding. I taught myself all the coding skills I have now. And with those skills, I have made some pretty decent projects, check them out! Be sure to ⭐ ❤️ & Follow, too! I have a few pictures below which are actually links. Click on them to take to different projects that I made. Might come in handy. :)
Need a project where you can check to see if you can use someone's camera or not? Here's one:
Need a project to detect when someone has clicked the stop sign? Take a look at this:
Need a project that can point at specific clones, etc? Why not use this:
Need to prank someone? Tell them to click this picture, but also make sure they're signed onto Scratch, otherwise, it doesn't work:
For more of my projects, just click on this picture:
- godricatscratch
- Scratcher
79 posts
Anti-Cheat Detection?
idk if that helps the topic I know im realy realy late but a simple approach is to do this:
When green flag clicked
{
set (key) to ()
set (old cash) to
wait (5) seconds
//the wait is so that your scripts can change cash to what ever
Forever
{
If ([not]) then
{
Set (cash) to ()
//you can do what ever you want here but i would do this just incase
}
set (Old cash) to ()
}
}
Last edited by godricatscratch (Jan. 25, 2022 03:26:14)
I will keep this signature until I reach 420 posts then I will revert back to my old profile and siggy which-OH NO, AN EVIL KUMQUAT IS APPROACHING!
- Yusei-Fudo
- Scratcher
1000+ posts
Anti-Cheat Detection?
idk if that helps the topic
Considering it's been around 4+ years since this topic was created, no. Like I said above, it's called necroposting, which is a form of spam.
I'm a decent coder who has a huge passion for coding. I taught myself all the coding skills I have now. And with those skills, I have made some pretty decent projects, check them out! Be sure to ⭐ ❤️ & Follow, too! I have a few pictures below which are actually links. Click on them to take to different projects that I made. Might come in handy. :)
Need a project where you can check to see if you can use someone's camera or not? Here's one:
Need a project to detect when someone has clicked the stop sign? Take a look at this:
Need a project that can point at specific clones, etc? Why not use this:
Need to prank someone? Tell them to click this picture, but also make sure they're signed onto Scratch, otherwise, it doesn't work:
For more of my projects, just click on this picture:
- Discussion Forums
- » Help with Scripts
- » Anti-Cheat Detection?