The Dink Network

Reply to Re: overlapping hitboxes + touch()

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:
 
 
December 10th 2024, 03:32 PM
death.gif
Seseler
Peasant He/Him Heard Island And Mcdonald Islands
 
Why do you want to get the hardbox intersection? As you noted, the game does not use them for anything?

Also do you need exact solution or is something within ± a few pixels good enough?

If you don't need the exactness you could make a brain 15 sprite with a hitbox suitably larger than the original's and use its touch procedure. (Edit: I guess that drone had the same idea )

If you really want an exact solution, there's the problem that dink's hitbox size depends on the sequence, so you should either adjust dink.ini (and the weapon scripts), or if you really want to do everything the hard way, set the brain 15 sprite's hitbox even larger and then re-check the distance on the touch procedure.