_on for signal receivers which require connect
- World
- Player
- Enemy
- Interactions
| Collision layer | ← Collision mask (looks for, interacts with) | |
|---|---|---|
| 1 | Main | [Bullets] [Entities] |
| 2 | Player EBullet | PHurtbox |
| 3 | Enemy PBullet | EHurtbox |
| 4 |
mask: What it collides with layer: What it is on
The script database_weapon.gd includes:
get_weapon(id: int) -> WeaponType reads the weapon database (json), initiates a WeaponType class and returns it.
Can create enemy system in similar fashion.
Bullet particle must be set to processing mode always.
Bullets detect hit with enemies and boxes by hurtbox, instead of by collision, which would cause the bullets to be removed before hitting the target.