Skip to content

feat: HelperType Projectile, hit detection and HitBy expansion - #1903

Merged
K4thos merged 3 commits into
ikemen-engine:developfrom
potsmugen:clsn2dev
Jul 22, 2024
Merged

K4thos merged 3 commits into
ikemen-engine:developfrom
potsmugen:clsn2dev

Conversation

@potsmugen

Copy link
Copy Markdown
Contributor

HelperType Projectile:

  • Helpers can now use Projectile in the HelperType parameter
  • Currently this makes collisions with other projectiles (standard or helpers of this type) be checked with Clsn2 boxes

Expanded hit detection:

  • Hitdef, Projectile and Reversaldef receive two new parameters: P2ClsnCheck and P2ClsnRequire
  • P2ClsnCheck: the hit will be checked against this type of collision box in the enemy
  • P2ClsnRequire: The hit will only happen if the enemy has any box of this type (no need for overlap)
  • Valid parameters: clsn1, clsn2, size and none

Expanded (Not)HitBy:

  • New parameters for HitBy and NotHitBy
  • PlayerNo filters hits by player number
  • PlayerID filters hits by player ID
  • Stack makes each invincibility slot be cumulative
  • Value3 through Value 8 add more invincibility slots

Minor refactor:

  • TargetAdd parameter changed from "ID" to "PlayerID"

- Helpers can now use Projectile in the HelperType parameter
- Currently this makes collisions with other projectiles (standard or helpers of this type) be checked with Clsn2 boxes
- Hitdef, Projectile and Reversaldef receive two new parameters: P2ClsnCheck and P2ClsnRequire
- P2ClsnCheck: the hit will be checked against this type of collision box in the enemy
- P2ClsnRequire: The hit will only happen if the enemy has any box of this type (no need for overlap)
- Valid parameters: clsn1, clsn2, size and none
- New parameters for HitBy and NotHitBy
- PlayerNo filters hits by player number
- PlayerID filters hits by player ID
- Stack makes each invincibility slot be cumulative
- Value3 through Value 8 add more invincibility slots

Minor refactor:
- TargetAdd parameter changed from "ID" to "PlayerID"
@github-actions github-actions Bot added the PR: feat This PR implements a new feature label Jul 22, 2024
@potsmugen potsmugen closed this Jul 22, 2024
@potsmugen potsmugen reopened this Jul 22, 2024
@github-actions github-actions Bot added PR: feat This PR implements a new feature and removed PR: feat This PR implements a new feature labels Jul 22, 2024
@K4thos
K4thos merged commit b343767 into ikemen-engine:develop Jul 22, 2024
@potsmugen
potsmugen deleted the clsn2dev branch March 21, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feat This PR implements a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants