The Dink Network

Reply to Re: sp_distance and sp_range effects on enemy sprites

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 2nd 2024, 01:22 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
Oh, NOW YOU'VE DONE IT! 
>but only on the Y axis when attacking down or up.

This appears to be a historical bug/oversight. When the origin sprite is facing direction 8 (north) and attacks it looks like it's supposed to expand left and right in line with the other directions but instead adds the calculated range value (range / 8) to the right and then immediately subtracts it, meaning it only gets 15px worth of padding pixels left and right plus 5 on top which you can see here most clearly with the tree.

If added to both left and right properly, in this case it would receive roughly 5 extra pixels (45 / 8) on either side and look like this.