-press&hold 'a' to create a situation where "enemy hit" would = false -release 'a' to create a situation where "enemy hit" would = true -press 's' to attack (0.5 second cooldown)s If you get a critical hit, WAIT until the text bubble denoting the crit's damage disappears; for some reason, the damage will only be calculated AFTER that, otherwise, Scratch Cat will sit there with 'Crit for' above his head the entire time.
If you use this engine to make anything, give me credit for the engine. This is just a Proof of Concept I made for the detection of projectile (in this case, the character) hitting the opponent. The following is included: Damage calculation Critical Hits (20% chance) HALP! I CAN'T GET THE BOSS HP BAR TO MOVE IN A LINEAR FASHION OF WHICH THE BOSS'S HP WOULD BE ACCURATELY REPRESENTED!