Question by
FireFoundry01 · Jan 27 at 03:03 PM ·
2d2d game2d-platformerprogramming2d-physics
What is the Easiest Way to Check if Two Time Periods are Overlapping
In the game I’m making, I want the player to be able to parry attacks. Because I don’t want my game to devolve into a frame perfect button mashing simulator, I want to give the player a leeway of around 20 frames before and after the attack to parry. This would be simple enough; I can just create a timer for 20 frames after the player attacks and another for after the enemy attacks and check if they’re overlapping, but that’s the thing. How do I check if these two time periods overlap? Any help would be appreciated. Thanks <3
Comment
Your answer
Follow this Question
Related Questions
Player controlled platforms 0 Answers
[2D] Rigid body snaps through floor and back 1 Answer
2d platformer physics 0 Answers
Collision Not regestering 1 Answer
Player Not Moving With Platform 2D 1 Answer