Hello, I need some help regarding the topic of singleplayer games.
I am making a FNAF-inspired game, I have a monster who gradually moves through the location until he reaches you and the game ends.
Now, in the game there is a mechanic similar to the actual FNAF games, flashlight stalling.
When you’d see my monster, you would have a small window of time to turn on your flashlight and point it at him, causing him to either go back to a random location further away from the office or simply be stalled in place
Initially, I made it work on the server but soon realized how tedious it is + with how it was set up, it’d be firing insane amounts of client-to-server events.
Now, the question is: how should I handle the mechanic in a efficient manner? Do I localize the monster and its AI entirely? Do I keep parts of my game on the server while purely localizing others?
Can I get away with trusting the client in this case?
if you want your game to be more responsive then localize the scripts “But” that will make Exploiters able to cheat in your game
since its singlePlayer that mean if someone exploited that willnot annoy other players but if you plan to make the game multiplayer later then do the checks on the server instead
and if it will send remotes “Alot” and if a remote wasnot sent is okay then you can try
unreliable Remote Events
also note that if you made all your game running on local scripts and no server scripts the exploiters will be able to clone/steal your game and make it functional because it run on local scripts
That’s actually a really good question, and it kinda off depends on how your game is, and how you want it to feel, personally in my single player projects I don’t do any sort of hack detection, and prioritize the experience overall, at the end if that’s the way players want to have fun, Why stop them from doing so? It might also help some skip parts of the game they don’t enjoy.