[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.5363659 [View]
File: 2 KB, 164x220, file.png [View same] [iqdb] [saucenao] [google]
5363659

>>5363647
"Sprite" is not even a physical thing on its own, you can't determine anything off of it.

As for determining where it was hit - you need to compare positions of the entities relative to each other, determine what angle the shot was coming from the shooter, and at which angle and height it hit the target to determine actual location. Then you have to tie that location to how player viewed the sprite from that angle and assign "hitbox range" accordingly - for all frames and all sprite rotations.

Would've been much simpler if we could have relatively simple hitbox-map layer in-engine (lloking somewhat like picrelated) so player would simply determine values like "damagefactor.red" or something like that (maybe by hex value)

Navigation
View posts[+24][+48][+96]