I made a targeting system that works based on MouseEntered and MouseExited, however the problem is if you get a target, then hold down the mouse button, you will always be targeting them no matter where you move your mouse because MouseEntered and MouseExited doesn't occur, can this be fixed?
The only workaround I can think of is checking to see if the target is actually close to the player's mouse location (I'm using Hiro's Mouse and Keys library so that's not as bad as it sounds), but I'd much rather just be able to use mouse procs simultaneously
EDIT: There's a few cheap workarounds really, I mean it's a rather fast paced game, so it's unlikely that the scenario would occur (it mostly only occurs if you target someone that's sitting completely still, as it's unlikely that you'll just hold down the mouse button to fire at them forever because your gun will eventually overheat; it's actually kind of minor, but still somewhat unfair)
ID:1299714
Jun 22 2013, 8:17 am
|
|