Currently using modulo of frame-count and an entity's attack-speed, but this makes all entities with the same attack speed attack at the same exact time. Instead, once they get in range, they should set last-attacked to the current frame-count. When frame-count equals last-attacked + attack-speed, attack again and set last-attacked to current frame-count.
Currently using modulo of frame-count and an entity's attack-speed, but this makes all entities with the same attack speed attack at the same exact time. Instead, once they get in range, they should set last-attacked to the current frame-count. When frame-count equals last-attacked + attack-speed, attack again and set last-attacked to current frame-count.