For my project game, I intend to develop a complicated fighting system that includes parrying, blocking, dodging, block breaks, heavy attacks, and weapon skills. The main issue is how difficult it is to effortlessly combine these tasks. I’ve tried several advised practices and checked the Developer Hub for solutions, but I’m still having issues. Any advice or support from an expert with experience developing such systems would be greatly appreciated.
I guess you are overcomplicating things for no reason at all, lol.
Basically when making such systems/game mechanics, you should plan your code first, for example where you will store state variables, how damage will be applied, will it work with other ideas in future and so on.
Every successful code is about 80% of planning and 20% of actual coding.
The advices I can give so far:
- Keep Hit detection on Client for the best responsiveness and game feelings.
- Make sanity checks on server to apply the damage (or any other Important stuff, such as stuns or knockbacks)
- You can keep track of player states in different ways, for example using Attributes (Like their Defense, If they are stunned or having IFrames)
- Keep it simple stupid, most of the cases you dont need fancy solutions, just set your problem properly
5 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.