Currently in the making of a game, and I need to know how to make a more efficient stun system.
Here’s how it works:
- Player hits Victim
- Insert a Value into the Victims “StunFolder”
- If the Victim tries to click check for a stringvalue inside of “StunFolder” named “Stun”
- If there is a value the player can not click, and is slowed down a bit. They also can not jump.
This system is 80% good, 20% of the time the player can jump out of some of the attacks, and their animation for attacking may play before being hit again. It’s the split second that there’s no values that makes the player free to move, punch, and jump.