PDA

View Full Version : What's the collision box size for LWeapons?



Gleeok
03-09-2008, 08:52 PM
Do these vary between some lweapons, or all they all the same down to the pixel?

What I'm trying to do is script them so I get customization over what damage and effects they are capable of dealing on a enemy to enemy basis, but when the default hit detection kicks in it becomes a bit erratic.

_L_
03-10-2008, 12:24 AM
As a NES game's physics system goes, all hitboxes are 16x16. I think.

Gleeok
03-10-2008, 01:04 AM
Ah, ok then. Was wondering that because some enemy weapon sprites hit box seem to be about 8-15 pixels. And I didn't see this:


Additionally, one can change the offset from the enemy's position to start drawing the sprite, as well as the offsets and size of the sprite's collision box (so variable sized weapon projectiles are possible as well). More information when the new build comes out. ( jman2050, 2008-03-05 15:19:45 )

Sweet. So I'm assuming you can make the collision box smaller as well as larger with scripting.