Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • solarus solarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 222
    • Issues 222
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Solarus Games
  • solarussolarus
  • Issues
  • #1066

Closed
Open
Created Jul 21, 2017 by Diarandor@DiarandorDeveloper

Allow to customize the collision test to hurt the hero

Allow to customize the collision test to hurt the hero.

For instance, in Minish Cap the hero is not hurt if a few pixels of the upper part of the sprite overlap an enemy sprite (the head is upper for the Z-axis but not for the Y-axis, so there should not be a collision). This will be better too for consistency with the shield sprite I made, since the shield, for the up direction, is not drawn at the upper border of the sprite (the head and hair are upper due to the "camera angle", like in Minish Cap).

It would be nice, for these purposes and others, to have a custom collision test that the engine will use if it is defined. For the cases explained above, we just need to add an extra condition of overlapping a rectangle that is smaller than the hero bounding box.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking