proc |
Problem description:
I'm trying to make a pre-calculation procedure so that when aiming at a mob, it's more accurate, because right now, it just aims at where they were, which will yield annoying gameplay if ever an enemy is moving with more than a velocity of 1.5 pixels/30/s (which is frequently). Right now , whenever they're moving it aims at the bottom right corner (I've also noticed the distance, d, has extremely variant numbers, i.e: when I print out the distance, it's 256 or so pixels between me and the tile two tiles away, 4 pixels away from the tile right in front of me, and like 310 pixels away for any tile further than 3 tiles away)
See if everything is correct now.