Search Unity

Need help

Discussion in 'Visual Scripting' started by JaviCollado7, Dec 19, 2020.

  1. JaviCollado7

    JaviCollado7

    Joined:
    Dec 6, 2020
    Posts:
    2
    Hi, I'm new to the forum and I'm looking for help.

    I tell you my problem. I'm creating a video game in which the main character should take damage when hit by an item labeled "Weapon" but not only does he take no damage but the BoxCollider on the enemy's weapon makes my character move. Also does not do the injury animation.

    I leave you the link to gitHub of my project, if someone would be so kind to help me I would appreciate it.

    https://github.com/Jiyo101/GhoulieMan2.git
     
  2. Valjuin

    Valjuin

    Joined:
    May 22, 2019
    Posts:
    481
    In the Inspector, enable the Is Trigger checkbox of the BoxCollider on the enemy’s weapon.
     
  3. JaviCollado7

    JaviCollado7

    Joined:
    Dec 6, 2020
    Posts:
    2
    Thank you very much for the help, you saved my life <3